Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.001579/0.001579, 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.001544/0.001544, 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.426/1.426, allocations: 230.5 MB / 257.4 MB, free: 7.738 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.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 59.91 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2498, allocations: 53.41 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003801/0.2536, allocations: 1.902 MB / 433 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.256, allocations: 1.235 MB / 434.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2561, allocations: 3.938 kB / 434.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.2565, allocations: 67.66 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.2569, allocations: 143.4 kB / 434.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.2575, allocations: 226.3 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.2577, allocations: 179.5 kB / 434.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.2578, allocations: 27.42 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.258, allocations: 91.56 kB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.2581, allocations: 87.66 kB / 435.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.2581, allocations: 8 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.2583, allocations: 67.95 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.055e-05/0.2584, allocations: 59.7 kB / 435.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.952e-05/0.2584, allocations: 59.59 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.2588, allocations: 254.9 kB / 435.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2588, allocations: 0 / 435.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2588, allocations: 0 / 435.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2588, allocations: 0 / 435.5 MB, free: 2.043 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007752/0.2596, allocations: 478.5 kB / 436 MB, free: 1.539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.2596, allocations: 19.98 kB / 436 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.423e-05/0.2597, allocations: 38.73 kB / 436 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.2597, allocations: 28.75 kB / 436.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.2602, allocations: 241.4 kB / 436.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.2602, allocations: 8.375 kB / 436.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.2603, allocations: 4.375 kB / 436.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.2607, allocations: 201.4 kB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2607, allocations: 0 / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.2607, allocations: 0 / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.2607, allocations: 0 / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.2608, allocations: 51.84 kB / 436.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006113/0.2614, allocations: 433.6 kB / 437 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.2617, allocations: 146.5 kB / 437.1 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.2618, allocations: 63.41 kB / 437.2 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.2619, allocations: 0 / 437.2 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.2621, allocations: 109 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.2621, allocations: 0 / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004472/0.2625, allocations: 173.5 kB / 437.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.2626, allocations: 162.2 kB / 437.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.263, allocations: 340.6 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.263, allocations: 33.7 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.2632, allocations: 136.3 kB / 438.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.2632, allocations: 15.91 kB / 438.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.2632, allocations: 37.64 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2634, allocations: 334.8 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.944e-05/0.2635, allocations: 31.98 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.2636, allocations: 142.2 kB / 438.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.2638, allocations: 101.1 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2638, allocations: 0 / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002614/0.2641, allocations: 141.4 kB / 438.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2641, allocations: 4 kB / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.2641, allocations: 4 kB / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2641, allocations: 0 / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.2643, allocations: 28.08 kB / 438.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2643, allocations: 4 kB / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.292e-05/0.2644, allocations: 15.89 kB / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.2644, allocations: 4 kB / 439 MB, free: 14.22 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001546/0.2645, allocations: 158.9 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.2646, allocations: 73.48 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.2649, allocations: 123.3 kB / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2649, allocations: 4 kB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.2649, allocations: 12.05 kB / 439.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2649, allocations: 4 kB / 439.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.2652, allocations: 212.5 kB / 439.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2652, allocations: 0 / 439.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.693e-05/0.2653, allocations: 19.92 kB / 439.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.2653, allocations: 4 kB / 439.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2653, allocations: 4 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.2653, allocations: 4 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2653, allocations: 0 / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.2656, allocations: 187.4 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.2657, allocations: 51.77 kB / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.2657, allocations: 3.938 kB / 439.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.168e-05/0.2658, allocations: 8 kB / 439.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.2659, allocations: 11.97 kB / 439.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.2659, allocations: 8 kB / 439.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002717/0.2661, allocations: 251 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2661, allocations: 0 / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.2664, allocations: 35.98 kB / 440.1 MB, free: 12.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002125/0.2685, allocations: 1.074 MB / 441.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002468/0.2688, allocations: 87.83 kB / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2688, allocations: 0 / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.789e-05/0.2689, allocations: 31.98 kB / 441.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.2693, allocations: 87.56 kB / 441.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.2721, allocations: 2.307 MB / 443.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.2723, allocations: 140.2 kB / 443.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.712e-05/0.2724, allocations: 25.64 kB / 443.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2725, allocations: 63.41 kB / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2725, allocations: 3.938 kB / 443.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.307, allocations: 6.247 MB / 450.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.31, allocations: 3.781 kB / 450.2 MB, free: 2.941 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.761831389274448]