Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.001241/0.001241, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00141/0.00141, allocations: 201 kB / 23.73 MB, free: 4.379 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.383/1.383, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2654, allocations: 53.37 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003349/0.2687, allocations: 1.902 MB / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.2711, allocations: 1.157 MB / 434.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.2712, allocations: 7.938 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007896/0.272, allocations: 151.5 kB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006227/0.2726, allocations: 167.4 kB / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.2733, allocations: 171.4 kB / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003817/0.2737, allocations: 199.5 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2738, allocations: 25.59 kB / 434.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.274, allocations: 91.56 kB / 434.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.2742, allocations: 79.67 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.248e-05/0.2742, allocations: 8 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.2744, allocations: 59.95 kB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.2745, allocations: 55.72 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.2746, allocations: 51.67 kB / 435.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.2751, allocations: 220.9 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2751, allocations: 0 / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2751, allocations: 4 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2751, allocations: 0 / 435.4 MB, free: 2.281 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.001004/0.2761, allocations: 470.5 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.2762, allocations: 8.031 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.2762, allocations: 42.73 kB / 435.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.2763, allocations: 20.8 kB / 435.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.2768, allocations: 205.2 kB / 436.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.2768, allocations: 12.31 kB / 436.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.2768, allocations: 11.94 kB / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004689/0.2773, allocations: 157.4 kB / 436.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2773, allocations: 4 kB / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2773, allocations: 0 / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2773, allocations: 3.984 kB / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.2774, allocations: 39.92 kB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.2781, allocations: 405.6 kB / 436.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.2785, allocations: 142.5 kB / 436.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2786, allocations: 51.42 kB / 436.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2787, allocations: 4 kB / 436.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.2789, allocations: 101 kB / 437 MB, free: 440 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.2789, allocations: 0 / 437 MB, free: 440 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005547/0.2794, allocations: 169.6 kB / 437.2 MB, free: 264 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.2796, allocations: 136.5 kB / 437.3 MB, free: 96 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.28, allocations: 281 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.28, allocations: 29.7 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.2801, allocations: 120.4 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.2802, allocations: 15.91 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.378e-05/0.2803, allocations: 41.66 kB / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.2805, allocations: 322.8 kB / 438.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.2806, allocations: 23.98 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2807, allocations: 106.8 kB / 438.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.2809, allocations: 97.11 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.281, allocations: 0 / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003581/0.2813, allocations: 125.5 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2813, allocations: 8.156 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2813, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.2814, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.2815, allocations: 23.92 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.2815, allocations: 0 / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2816, allocations: 19.83 kB / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2816, allocations: 4 kB / 438.5 MB, free: 14.81 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.0001842/0.2818, allocations: 141.8 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.2819, allocations: 69.48 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.2823, allocations: 123.4 kB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.2823, allocations: 4.312 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2823, allocations: 3.938 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.2823, allocations: 3.938 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002827/0.2826, allocations: 204.6 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2826, allocations: 0 / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.2826, allocations: 8 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2826, allocations: 0 / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.2826, allocations: 11.98 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2826, allocations: 0 / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2827, allocations: 4 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.283, allocations: 187.3 kB / 439.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.2831, allocations: 39.78 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.2832, allocations: 0 / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.2833, allocations: 12 kB / 439.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.2833, allocations: 11.92 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.2833, allocations: 4 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.2836, allocations: 208.4 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2836, allocations: 0 / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004402/0.2841, allocations: 28 kB / 439.6 MB, free: 13.67 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.002821/0.2869, allocations: 1.062 MB / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003014/0.2872, allocations: 83.83 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2872, allocations: 3.938 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.2873, allocations: 31.98 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006064/0.2879, allocations: 68.77 kB / 440.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.2913, allocations: 2.021 MB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2915, allocations: 127.7 kB / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.2916, allocations: 25.62 kB / 443 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2917, allocations: 55.41 kB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2917, allocations: 4 kB / 443.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03891/0.3306, allocations: 5.597 MB / 448.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.82, allocations: 10.27 kB / 448.7 MB, free: 4.668 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.211230765999062]