Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001785/0.001785, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002154/0.002154, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.4 MB / 254 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 67.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1081, allocations: 53.37 MB / 426.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002873/0.111, allocations: 1.612 MB / 428 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009994/0.112, allocations: 0.5609 MB / 428.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.1121, allocations: 0 / 428.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.682e-05/0.1121, allocations: 15.86 kB / 428.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.1123, allocations: 11.94 kB / 428.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003211/0.1126, allocations: 71.73 kB / 428.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.1127, allocations: 47.84 kB / 428.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.1128, allocations: 8 kB / 428.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.1129, allocations: 35.84 kB / 428.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.113, allocations: 23.86 kB / 428.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.113, allocations: 4 kB / 428.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.887e-05/0.113, allocations: 4 kB / 428.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.929e-05/0.1131, allocations: 19.92 kB / 428.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.764e-05/0.1131, allocations: 35.73 kB / 428.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.1133, allocations: 59.73 kB / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1133, allocations: 0 / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1133, allocations: 0 / 428.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1133, allocations: 3.938 kB / 428.9 MB, free: 2.113 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.0005251/0.1138, allocations: 399 kB / 429.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1138, allocations: 8.031 kB / 429.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.418e-05/0.1139, allocations: 34.73 kB / 429.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.114, allocations: 24.88 kB / 429.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.1143, allocations: 196.2 kB / 429.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.1143, allocations: 8.375 kB / 429.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.1143, allocations: 384 / 429.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.1146, allocations: 141.9 kB / 429.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1146, allocations: 0 / 429.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.1146, allocations: 0 / 429.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1146, allocations: 4 kB / 429.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.786e-05/0.1147, allocations: 19.98 kB / 429.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003712/0.1151, allocations: 290.5 kB / 430 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.1153, allocations: 152.8 kB / 430.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.922e-05/0.1154, allocations: 34.69 kB / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.1154, allocations: 11.98 kB / 430.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.1155, allocations: 38.55 kB / 430.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.1155, allocations: 3.938 kB / 430.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002867/0.1158, allocations: 97.44 kB / 430.3 MB, free: 448 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/0.1158, allocations: 111 kB / 430.4 MB, free: 312 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.116, allocations: 144.6 kB / 430.6 MB, free: 160 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.116, allocations: 29.7 kB / 430.6 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.1161, allocations: 88.12 kB / 430.7 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.1161, allocations: 11.89 kB / 430.7 MB, free: 20 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.1161, allocations: 17.72 kB / 430.7 MB, free: 16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1163, allocations: 326.8 kB / 431 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.621e-05/0.1163, allocations: 12 kB / 431 MB, free: 15.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.69e-05/0.1164, allocations: 44.28 kB / 431.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.1165, allocations: 68.14 kB / 431.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1165, allocations: 4 kB / 431.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001955/0.1167, allocations: 85.56 kB / 431.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1167, allocations: 8 kB / 431.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.1168, allocations: 0 / 431.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1168, allocations: 0 / 431.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.295e-05/0.1168, allocations: 15.92 kB / 431.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1168, allocations: 4 kB / 431.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.255e-05/0.1169, allocations: 12.31 kB / 431.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1169, allocations: 0 / 431.3 MB, free: 15.38 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 0.000108/0.117, allocations: 129.8 kB / 431.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.603e-05/0.1171, allocations: 53.64 kB / 431.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.321e-05/0.1171, allocations: 20.17 kB / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1171, allocations: 0 / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1171, allocations: 0 / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1172, allocations: 0 / 431.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.1174, allocations: 177.6 kB / 431.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.1174, allocations: 4 kB / 431.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.485e-05/0.1174, allocations: 12 kB / 431.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1174, allocations: 4 kB / 431.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.1174, allocations: 0 / 431.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1174, allocations: 3.984 kB / 431.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1174, allocations: 4 kB / 431.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/0.1177, allocations: 193.1 kB / 431.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.661e-05/0.1177, allocations: 97.05 kB / 431.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.1178, allocations: 3.938 kB / 431.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.128e-05/0.1178, allocations: 4 kB / 432 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.448e-05/0.1179, allocations: 0 / 432 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.1179, allocations: 11.92 kB / 432 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.916e-05/0.1179, allocations: 107.3 kB / 432.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1179, allocations: 0 / 432.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.1182, allocations: 8 kB / 432.1 MB, free: 14.45 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.0006214/0.1188, allocations: 0.7569 MB / 432.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.119, allocations: 48.09 kB / 432.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.119, allocations: 0 / 432.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.661e-05/0.119, allocations: 11.98 kB / 432.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.1194, allocations: 41.23 kB / 432.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.1209, allocations: 1.448 MB / 434.4 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.1213, allocations: 0.7002 MB / 435.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.047e-05/0.1213, allocations: 3.781 kB / 435.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.1214, allocations: 23.42 kB / 435.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1214, allocations: 0 / 435.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.1453, allocations: 1.812 MB / 436.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/7.802, allocations: 6.484 kB / 436.9 MB, free: 9.574 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_trunk_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.535164595930837]