Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 207.2 kB / 20.75 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 47.94 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1123, allocations: 53.32 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003052/0.1153, allocations: 1.618 MB / 427.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.1163, allocations: 0.5571 MB / 428.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.545e-05/0.1164, allocations: 7.938 kB / 428.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.007e-05/0.1165, allocations: 3.938 kB / 428.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.1166, allocations: 19.84 kB / 428.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.1169, allocations: 55.83 kB / 428.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.1171, allocations: 51.78 kB / 428.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.783e-05/0.1172, allocations: 15.97 kB / 428.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.1173, allocations: 27.92 kB / 428.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.168e-05/0.1173, allocations: 23.86 kB / 428.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.1173, allocations: 4 kB / 428.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.717e-05/0.1174, allocations: 4 kB / 428.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.1174, allocations: 31.91 kB / 428.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.704e-05/0.1175, allocations: 23.81 kB / 428.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.1176, allocations: 67.59 kB / 428.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1176, allocations: 4 kB / 428.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1176, allocations: 0 / 428.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.1177, allocations: 0 / 428.8 MB, free: 2.258 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005282/0.1182, allocations: 391 kB / 429.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1182, allocations: 8.031 kB / 429.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.017e-05/0.1183, allocations: 42.75 kB / 429.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.1184, allocations: 20.88 kB / 429.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.1187, allocations: 200.2 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1187, allocations: 8.312 kB / 429.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.1187, allocations: 4.375 kB / 429.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.119, allocations: 134 kB / 429.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.119, allocations: 0 / 429.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.119, allocations: 7.984 kB / 429.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.119, allocations: 3.938 kB / 429.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.162e-05/0.1191, allocations: 23.92 kB / 429.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003653/0.1195, allocations: 286.6 kB / 429.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.1197, allocations: 157 kB / 430.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.278e-05/0.1198, allocations: 38.56 kB / 430.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.1198, allocations: 0 / 430.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1199, allocations: 38.5 kB / 430.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.113e-06/0.1199, allocations: 0 / 430.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003097/0.1202, allocations: 97.55 kB / 430.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.1203, allocations: 111 kB / 430.4 MB, free: 464 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.1204, allocations: 147.4 kB / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.1204, allocations: 25.7 kB / 430.5 MB, free: 276 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/0.1205, allocations: 88.14 kB / 430.6 MB, free: 184 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.1205, allocations: 11.89 kB / 430.6 MB, free: 172 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.1205, allocations: 21.7 kB / 430.7 MB, free: 144 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1207, allocations: 318.8 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.511e-05/0.1208, allocations: 15.98 kB / 431 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-05/0.1208, allocations: 52.22 kB / 431 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.121, allocations: 64.22 kB / 431.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.121, allocations: 0 / 431.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000173/0.1211, allocations: 93.48 kB / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1211, allocations: 4 kB / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1211, allocations: 0 / 431.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.1212, allocations: 4 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.041e-05/0.1212, allocations: 8 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.1212, allocations: 0 / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.979e-05/0.1213, allocations: 16.06 kB / 431.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1213, allocations: 8 kB / 431.2 MB, free: 15.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.061e-05/0.1214, allocations: 117.8 kB / 431.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.838e-05/0.1215, allocations: 57.58 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.1215, allocations: 12.53 kB / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1215, allocations: 0 / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1215, allocations: 0 / 431.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.1215, allocations: 11.97 kB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.1218, allocations: 177.6 kB / 431.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1218, allocations: 4 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.091e-05/0.1218, allocations: 11.98 kB / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1219, allocations: 0 / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.1219, allocations: 3.938 kB / 431.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.1219, allocations: 8 kB / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1219, allocations: 160 / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.1221, allocations: 189.1 kB / 431.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.1222, allocations: 97.05 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.1222, allocations: 3.984 kB / 431.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.1223, allocations: 4 kB / 431.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.1223, allocations: 7.938 kB / 431.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1223, allocations: 4 kB / 431.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.901e-05/0.1224, allocations: 109.1 kB / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1224, allocations: 0 / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.1226, allocations: 8 kB / 432 MB, free: 14.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006071/0.1232, allocations: 0.7613 MB / 432.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001791/0.1234, allocations: 51.97 kB / 432.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1234, allocations: 0 / 432.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.694e-05/0.1234, allocations: 11.94 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.1238, allocations: 28 kB / 432.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.1254, allocations: 1.458 MB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.1257, allocations: 0.6924 MB / 435 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.524e-05/0.1258, allocations: 11.77 kB / 435 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.1258, allocations: 19.44 kB / 435.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1258, allocations: 0 / 435.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.1512, allocations: 1.805 MB / 436.9 MB, free: 9.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.867/8.018, allocations: 10.25 kB / 436.9 MB, free: 9.723 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable clockToSquareWave.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:time,clockToSquareWave.u,sample1.y,sine.y,sine.amplitude,sine.f [Calling sys.exit(0), Time elapsed: 10.687180021006498]