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.00209/0.00209, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002309/0.002309, allocations: 207.9 kB / 23.73 MB, free: 4.391 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.528/1.528, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.00216/0.00216, allocations: 71.89 kB / 377.8 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3265, allocations: 53.39 MB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003805/0.3303, allocations: 1.612 MB / 432.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3316, allocations: 0.522 MB / 433.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.3317, allocations: 0 / 433.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.191e-05/0.3317, allocations: 3.938 kB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.3319, allocations: 15.86 kB / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.3323, allocations: 59.81 kB / 433.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.3324, allocations: 55.78 kB / 433.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3326, allocations: 11.98 kB / 433.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.3327, allocations: 31.86 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.079e-05/0.3328, allocations: 23.84 kB / 433.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.3328, allocations: 4 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.5e-05/0.3329, allocations: 8 kB / 433.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.286e-05/0.3329, allocations: 15.92 kB / 433.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.002e-05/0.333, allocations: 19.88 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.3332, allocations: 73.34 kB / 433.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3332, allocations: 0 / 433.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3332, allocations: 4 kB / 433.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.3332, allocations: 0 / 433.6 MB, free: 3.969 MB / 334.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.0005992/0.3338, allocations: 305.9 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.3338, allocations: 11.98 kB / 433.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.618e-05/0.3339, allocations: 42.73 kB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.3341, allocations: 16.88 kB / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.3344, allocations: 149 kB / 434.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.3344, allocations: 8.375 kB / 434.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.3344, allocations: 8.375 kB / 434.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.3347, allocations: 138 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3348, allocations: 0 / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.3348, allocations: 0 / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.3348, allocations: 4 kB / 434.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.072e-05/0.3349, allocations: 27.86 kB / 434.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004167/0.3353, allocations: 249.7 kB / 434.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.3355, allocations: 79.72 kB / 434.6 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.3356, allocations: 42.62 kB / 434.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.3356, allocations: 0 / 434.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.3357, allocations: 38.55 kB / 434.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.3357, allocations: 0 / 434.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003021/0.336, allocations: 89.56 kB / 434.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.336, allocations: 119 kB / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.3362, allocations: 145.8 kB / 435 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.3362, allocations: 25.7 kB / 435.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.3363, allocations: 92.14 kB / 435.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.3363, allocations: 15.86 kB / 435.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.3363, allocations: 21.67 kB / 435.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3365, allocations: 326.8 kB / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.51e-05/0.3365, allocations: 12 kB / 435.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.924e-05/0.3366, allocations: 44.28 kB / 435.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.3367, allocations: 68.2 kB / 435.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3367, allocations: 0 / 435.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001721/0.3369, allocations: 81.55 kB / 435.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3369, allocations: 8 kB / 435.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3369, allocations: 0 / 435.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.337, allocations: 128 / 435.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.765e-05/0.337, allocations: 16 kB / 435.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.337, allocations: 7.984 kB / 435.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.056e-05/0.3371, allocations: 7.953 kB / 435.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/0.3371, allocations: 0 / 435.8 MB, free: 1.535 MB / 334.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.0001239/0.3372, allocations: 125.7 kB / 435.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.005e-05/0.3373, allocations: 53.88 kB / 435.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.3374, allocations: 20.38 kB / 436 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3374, allocations: 3.984 kB / 436 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3374, allocations: 0 / 436 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3374, allocations: 0 / 436 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.3376, allocations: 148.7 kB / 436.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3376, allocations: 4 kB / 436.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.384e-05/0.3376, allocations: 8 kB / 436.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3376, allocations: 0 / 436.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.3377, allocations: 3.938 kB / 436.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3377, allocations: 7.938 kB / 436.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.3377, allocations: 3.984 kB / 436.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.3379, allocations: 189.1 kB / 436.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-05/0.3379, allocations: 11.95 kB / 436.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.3379, allocations: 7.984 kB / 436.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.338, allocations: 8 kB / 436.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.3381, allocations: 4 kB / 436.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.3381, allocations: 3.938 kB / 436.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.921e-05/0.3382, allocations: 114 kB / 436.5 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3382, allocations: 3.938 kB / 436.5 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.3384, allocations: 8 kB / 436.5 MB, free: 0.7344 MB / 334.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.0006674/0.3391, allocations: 0.7493 MB / 437.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001668/0.3392, allocations: 47.97 kB / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3392, allocations: 0 / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-05/0.3393, allocations: 15.94 kB / 437.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.3396, allocations: 35.5 kB / 437.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.3413, allocations: 1.463 MB / 438.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.812e-05/0.3414, allocations: 79.39 kB / 438.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.082e-05/0.3414, allocations: 7.984 kB / 438.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.3415, allocations: 19.44 kB / 438.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3415, allocations: 0 / 438.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.3731, allocations: 2.338 MB / 441.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.3, allocations: 6.344 kB / 441.2 MB, free: 11.93 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.924973716959357]