Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 114.5 kB / 17.78 MB, free: 5.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 190.9 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.92 kB / 365.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00311/0.1168, allocations: 1.596 MB / 419.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009413/0.1178, allocations: 0.4987 MB / 419.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.1179, allocations: 4 kB / 419.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.524e-05/0.1179, allocations: 11.86 kB / 419.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.118, allocations: 7.938 kB / 419.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.1183, allocations: 47.83 kB / 420 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.1184, allocations: 55.83 kB / 420 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.446e-05/0.1185, allocations: 12.17 kB / 420 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.15e-05/0.1186, allocations: 23.81 kB / 420 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.025e-05/0.1187, allocations: 35.83 kB / 420.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.1187, allocations: 4 kB / 420.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.1187, allocations: 4 kB / 420.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.605e-05/0.1188, allocations: 15.94 kB / 420.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.29e-05/0.1188, allocations: 27.8 kB / 420.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1189, allocations: 63.61 kB / 420.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1189, allocations: 0 / 420.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1189, allocations: 0 / 420.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1189, allocations: 0 / 420.2 MB, free: 10.27 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.0005544/0.1195, allocations: 391 kB / 420.6 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1195, allocations: 12.03 kB / 420.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.1196, allocations: 30.75 kB / 420.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.1196, allocations: 8.891 kB / 420.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.1199, allocations: 196.2 kB / 420.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.1199, allocations: 8.375 kB / 420.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.1199, allocations: 384 / 420.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.1202, allocations: 145.7 kB / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1202, allocations: 0 / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.1202, allocations: 0 / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1202, allocations: 4 kB / 421 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.547e-05/0.1203, allocations: 23.92 kB / 421 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.1207, allocations: 290.5 kB / 421.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.1209, allocations: 152.8 kB / 421.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.096e-05/0.121, allocations: 38.69 kB / 421.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.121, allocations: 4 kB / 421.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1211, allocations: 38.48 kB / 421.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.143e-06/0.1211, allocations: 0 / 421.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002882/0.1213, allocations: 93.8 kB / 421.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.1214, allocations: 114.8 kB / 421.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.1216, allocations: 140.4 kB / 421.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1216, allocations: 25.7 kB / 421.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.1216, allocations: 92.14 kB / 422 MB, free: 8.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.1217, allocations: 7.938 kB / 422 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.1217, allocations: 25.67 kB / 422 MB, free: 8.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1219, allocations: 322.8 kB / 422.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.159e-05/0.1219, allocations: 12 kB / 422.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.906e-05/0.122, allocations: 56.2 kB / 422.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.1221, allocations: 64.22 kB / 422.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1221, allocations: 0 / 422.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001863/0.1223, allocations: 81.59 kB / 422.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.1223, allocations: 7.938 kB / 422.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1223, allocations: 4 kB / 422.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1223, allocations: 0 / 422.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.562e-05/0.1224, allocations: 16.06 kB / 422.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1224, allocations: 4 kB / 422.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.419e-05/0.1225, allocations: 11.94 kB / 422.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.1225, allocations: 4 kB / 422.6 MB, free: 7.551 MB / 350.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.972e-05/0.1226, allocations: 125.7 kB / 422.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.523e-05/0.1227, allocations: 53.58 kB / 422.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.168e-05/0.1227, allocations: 12.25 kB / 422.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1227, allocations: 0 / 422.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.1227, allocations: 7.984 kB / 422.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1227, allocations: 0 / 422.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.123, allocations: 185.6 kB / 422.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.123, allocations: 0 / 422.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.123, allocations: 11.98 kB / 423 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.123, allocations: 0 / 423 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.123, allocations: 7.938 kB / 423 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1231, allocations: 0 / 423 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1231, allocations: 0 / 423 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.1233, allocations: 197.1 kB / 423.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-05/0.1234, allocations: 89.05 kB / 423.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.1234, allocations: 7.984 kB / 423.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.683e-05/0.1235, allocations: 4 kB / 423.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.1235, allocations: 0 / 423.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.1235, allocations: 4 kB / 423.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.244e-05/0.1236, allocations: 109.5 kB / 423.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1236, allocations: 4 kB / 423.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002445/0.1238, allocations: 11.94 kB / 423.4 MB, free: 6.625 MB / 350.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.0006426/0.1245, allocations: 0.7499 MB / 424.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001706/0.1246, allocations: 51.97 kB / 424.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1246, allocations: 0 / 424.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.478e-05/0.1247, allocations: 8 kB / 424.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.125, allocations: 31.89 kB / 424.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1266, allocations: 1.459 MB / 425.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.127, allocations: 0.7 MB / 426.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.139e-05/0.127, allocations: 0 / 426.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.1271, allocations: 19.42 kB / 426.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1271, allocations: 0 / 426.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.1583, allocations: 1.792 MB / 428.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.303, allocations: 10.17 kB / 428.2 MB, free: 1.777 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.0.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.849992149043828]