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.0008493/0.0008493, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008217/0.0008217, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8804/0.8804, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.914e-06/1.914e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.641e-05/1.833e-05, allocations: 6.219 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001986/0.002004, allocations: 1.626 MB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006636/0.002668, allocations: 0.5103 MB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.002744, allocations: 7.938 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.041e-05/0.002784, allocations: 3.938 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.002907, allocations: 11.86 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.00318, allocations: 67.69 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.003282, allocations: 63.77 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.074e-05/0.003363, allocations: 4 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.003472, allocations: 39.84 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.556e-05/0.003518, allocations: 19.91 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.003533, allocations: 4 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.356e-05/0.003566, allocations: 7.984 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.053e-05/0.003607, allocations: 12 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.003636, allocations: 23.91 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.003757, allocations: 67.72 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.003759, allocations: 4 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.00376, allocations: 0 / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.003763, allocations: 0 / 327 MB, free: 13.4 MB / 298.7 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.0003363/0.0041, allocations: 302 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.004133, allocations: 11.98 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.965e-05/0.004162, allocations: 42.73 kB / 327.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.433e-05/0.004257, allocations: 12.89 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.004424, allocations: 149.5 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.004433, allocations: 8.375 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.004443, allocations: 4.375 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.004657, allocations: 130.4 kB / 327.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.004664, allocations: 192 / 327.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.004672, allocations: 4.125 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.004678, allocations: 4 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.927e-05/0.004727, allocations: 27.86 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002589/0.004986, allocations: 245.7 kB / 327.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.005119, allocations: 79.72 kB / 328 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.582e-05/0.005165, allocations: 42.62 kB / 328 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.005189, allocations: 4 kB / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.005205, allocations: 38.5 kB / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.005206, allocations: 0 / 328.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001863/0.005392, allocations: 97.73 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.005444, allocations: 110.8 kB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.661e-05/0.00553, allocations: 152.9 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.058e-06/0.00554, allocations: 25.7 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.005574, allocations: 88.14 kB / 328.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.005589, allocations: 11.83 kB / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.005617, allocations: 21.7 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.057e-05/0.005687, allocations: 314.8 kB / 328.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.415e-05/0.005711, allocations: 11.98 kB / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.882e-05/0.00574, allocations: 25.7 kB / 328.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.199e-05/0.005792, allocations: 45.97 kB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.005795, allocations: 4 kB / 329 MB, free: 11.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.583e-05/0.00587, allocations: 73.5 kB / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.005883, allocations: 4 kB / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.005888, allocations: 0 / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.005899, allocations: 0 / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.577e-05/0.005935, allocations: 4 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.005939, allocations: 0 / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.984e-05/0.005959, allocations: 12.03 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.005965, allocations: 3.984 kB / 329.1 MB, free: 11.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 5.895e-05/0.006024, allocations: 117.8 kB / 329.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/0.00607, allocations: 61.52 kB / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.736e-05/0.006097, allocations: 12.34 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.006099, allocations: 0 / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.006103, allocations: 0 / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.006106, allocations: 0 / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.006223, allocations: 148.6 kB / 329.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.006223, allocations: 4 kB / 329.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.668e-05/0.00625, allocations: 11.98 kB / 329.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.006251, allocations: 7.938 kB / 329.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.006259, allocations: 4 kB / 329.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.006261, allocations: 4 kB / 329.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.006262, allocations: 0 / 329.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001167/0.006378, allocations: 189.1 kB / 329.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.006406, allocations: 11.94 kB / 329.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.006421, allocations: 8 kB / 329.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.461e-05/0.006456, allocations: 0 / 329.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.006481, allocations: 7.984 kB / 329.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.006484, allocations: 7.938 kB / 329.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.805e-05/0.006532, allocations: 111.2 kB / 329.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006532, allocations: 0 / 329.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001473/0.00668, allocations: 12 kB / 329.8 MB, free: 10.28 MB / 298.7 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.0003369/0.007016, allocations: 0.7414 MB / 330.5 MB, free: 9.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.007125, allocations: 35.92 kB / 330.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.007126, allocations: 0 / 330.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.211e-05/0.007148, allocations: 16.11 kB / 330.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.007404, allocations: 31.7 kB / 330.6 MB, free: 9.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009225/0.008327, allocations: 1.402 MB / 332 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.454e-05/0.008381, allocations: 75.61 kB / 332.1 MB, free: 7.832 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.842e-05/0.00841, allocations: 8.125 kB / 332.1 MB, free: 7.824 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.008451, allocations: 24.48 kB / 332.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008451, allocations: 0 / 332.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.02298, allocations: 2.447 MB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/6.763, allocations: 4.031 kB / 334.6 MB, free: 5.469 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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: 8.506995679810643]