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.001781/0.001781, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002082/0.002082, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001633/0.001633, allocations: 43.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2388, allocations: 53.37 MB / 431.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002864/0.2417, allocations: 1.608 MB / 432.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.2427, allocations: 0.5259 MB / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.403e-05/0.2428, allocations: 3.938 kB / 433.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.318e-05/0.2428, allocations: 7.875 kB / 433.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.2429, allocations: 15.91 kB / 433.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.2433, allocations: 59.81 kB / 433.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.2434, allocations: 43.86 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.365e-05/0.2435, allocations: 19.97 kB / 433.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.2436, allocations: 35.8 kB / 433.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.2437, allocations: 23.86 kB / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.2437, allocations: 4 kB / 433.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.919e-05/0.2437, allocations: 8 kB / 433.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.2438, allocations: 19.91 kB / 433.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.782e-05/0.2438, allocations: 19.88 kB / 433.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.244, allocations: 73.34 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.244, allocations: 0 / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.244, allocations: 0 / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.244, allocations: 0 / 433.6 MB, free: 4.336 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.0004647/0.2444, allocations: 305.9 kB / 433.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2445, allocations: 12.03 kB / 433.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.668e-05/0.2445, allocations: 38.75 kB / 433.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.2446, allocations: 20.81 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.2449, allocations: 144.6 kB / 434.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2449, allocations: 8.25 kB / 434.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.2449, allocations: 8.375 kB / 434.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.2452, allocations: 134 kB / 434.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.2453, allocations: 0 / 434.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2453, allocations: 4 kB / 434.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2453, allocations: 4 kB / 434.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.764e-05/0.2454, allocations: 27.91 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003443/0.2457, allocations: 241.7 kB / 434.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.2459, allocations: 79.72 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.817e-05/0.246, allocations: 46.62 kB / 434.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.246, allocations: 3.984 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.246, allocations: 34.56 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.246, allocations: 0 / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002799/0.2463, allocations: 89.56 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.2464, allocations: 114.7 kB / 434.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.2465, allocations: 141.8 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.2465, allocations: 25.7 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.2466, allocations: 96.38 kB / 435.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.2466, allocations: 11.89 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.2467, allocations: 21.67 kB / 435.1 MB, free: 2.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2468, allocations: 326.8 kB / 435.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.201e-05/0.2469, allocations: 11.98 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.86e-05/0.2469, allocations: 48.28 kB / 435.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.2471, allocations: 68.39 kB / 435.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2471, allocations: 4 kB / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001644/0.2472, allocations: 81.55 kB / 435.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2473, allocations: 8 kB / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2473, allocations: 0 / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2473, allocations: 0 / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.85e-05/0.2473, allocations: 15.92 kB / 435.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.2473, allocations: 4 kB / 435.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.898e-05/0.2474, allocations: 20.02 kB / 435.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.2474, allocations: 0 / 435.7 MB, free: 1.902 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.0001048/0.2475, allocations: 125.8 kB / 435.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.2476, allocations: 49.66 kB / 435.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.2476, allocations: 12.33 kB / 435.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2476, allocations: 4 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2476, allocations: 0 / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2476, allocations: 3.938 kB / 435.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.2478, allocations: 144.7 kB / 436 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2478, allocations: 4 kB / 436 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.2479, allocations: 15.94 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2479, allocations: 4 kB / 436.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.2479, allocations: 3.984 kB / 436.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.2479, allocations: 4 kB / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2479, allocations: 0 / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.2481, allocations: 185.1 kB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-05/0.2481, allocations: 15.94 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.2482, allocations: 4 kB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.2482, allocations: 0 / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.511e-05/0.2483, allocations: 11.94 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.2483, allocations: 4 kB / 436.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.618e-05/0.2484, allocations: 114 kB / 436.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2484, allocations: 0 / 436.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.2486, allocations: 8 kB / 436.4 MB, free: 1.117 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.0005985/0.2492, allocations: 0.7532 MB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.2494, allocations: 47.84 kB / 437.2 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2494, allocations: 320 / 437.2 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.955e-05/0.2494, allocations: 15.98 kB / 437.2 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.2498, allocations: 38.77 kB / 437.3 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.2513, allocations: 1.451 MB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.954e-05/0.2514, allocations: 91.5 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.159e-05/0.2515, allocations: 0 / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.504e-05/0.2515, allocations: 23.42 kB / 438.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2515, allocations: 3.938 kB / 438.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.2805, allocations: 2.368 MB / 441.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.05, allocations: 10.19 kB / 441.2 MB, free: 12.3 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.54446617999929]