Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 51.86 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2523, allocations: 52.17 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003398/0.2557, allocations: 1.853 MB / 424.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2576, allocations: 1.087 MB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.2577, allocations: 3.938 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003026/0.258, allocations: 67.66 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.2582, allocations: 95.53 kB / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006896/0.2589, allocations: 258.6 kB / 425.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.2592, allocations: 171.5 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.953e-05/0.2593, allocations: 17.73 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2594, allocations: 83.62 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.2595, allocations: 75.67 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2595, allocations: 8 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.2597, allocations: 71.94 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.571e-05/0.2598, allocations: 59.66 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.2599, allocations: 59.59 kB / 426.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.2602, allocations: 240.7 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2602, allocations: 4 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2602, allocations: 0 / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2602, allocations: 0 / 426.7 MB, free: 10.25 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006826/0.2609, allocations: 470.5 kB / 427.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2609, allocations: 12.03 kB / 427.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.261, allocations: 38.73 kB / 427.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.232e-05/0.261, allocations: 24.8 kB / 427.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.2614, allocations: 229.5 kB / 427.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2614, allocations: 8.375 kB / 427.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.2614, allocations: 11.94 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003408/0.2618, allocations: 180.4 kB / 427.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.2618, allocations: 0 / 427.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2618, allocations: 0 / 427.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.2618, allocations: 4 kB / 427.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2619, allocations: 39.95 kB / 427.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004986/0.2624, allocations: 345.4 kB / 428 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.2626, allocations: 123.9 kB / 428.1 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.768e-05/0.2627, allocations: 38.56 kB / 428.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2628, allocations: 4 kB / 428.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/0.2629, allocations: 87.31 kB / 428.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.2629, allocations: 0 / 428.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.00038/0.2633, allocations: 157.7 kB / 428.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.2634, allocations: 140.5 kB / 428.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.2637, allocations: 329.8 kB / 428.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2638, allocations: 25.7 kB / 428.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.293e-05/0.2639, allocations: 124.1 kB / 429 MB, free: 7.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.2639, allocations: 15.89 kB / 429.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.2639, allocations: 37.66 kB / 429.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2641, allocations: 326.8 kB / 429.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.72e-05/0.2642, allocations: 27.98 kB / 429.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.2643, allocations: 133.3 kB / 429.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.2645, allocations: 92.25 kB / 429.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2645, allocations: 0 / 429.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002398/0.2647, allocations: 125.4 kB / 429.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2647, allocations: 4 kB / 429.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2647, allocations: 4 kB / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2647, allocations: 128 / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.2649, allocations: 27.98 kB / 429.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2649, allocations: 0 / 429.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.184e-05/0.2649, allocations: 23.75 kB / 429.8 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.265, allocations: 7.938 kB / 429.8 MB, free: 6.785 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: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001372/0.2651, allocations: 153.8 kB / 430 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.2652, allocations: 65.5 kB / 430.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002702/0.2655, allocations: 123.4 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2655, allocations: 4 kB / 430.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2655, allocations: 4.062 kB / 430.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2655, allocations: 3.938 kB / 430.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.2657, allocations: 197 kB / 430.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2657, allocations: 8 kB / 430.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.854e-05/0.2658, allocations: 11.98 kB / 430.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2658, allocations: 7.938 kB / 430.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2658, allocations: 0 / 430.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2658, allocations: 0 / 430.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.2658, allocations: 4 kB / 430.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.2661, allocations: 174.5 kB / 430.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.2661, allocations: 43.77 kB / 430.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.2662, allocations: 8 kB / 430.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.236e-05/0.2662, allocations: 0 / 430.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.2663, allocations: 15.92 kB / 430.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.2663, allocations: 4 kB / 430.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002501/0.2665, allocations: 245.2 kB / 430.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2665, allocations: 0 / 430.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.2668, allocations: 32 kB / 430.9 MB, free: 5.609 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (10): * Single equations (assignments): 8 * 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.002078/0.2689, allocations: 1.054 MB / 432 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002228/0.2691, allocations: 75.84 kB / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2691, allocations: 0 / 432.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.908e-05/0.2692, allocations: 35.97 kB / 432.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.2696, allocations: 60.31 kB / 432.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.2721, allocations: 2.22 MB / 434.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.2722, allocations: 131.9 kB / 434.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.735e-05/0.2723, allocations: 25.62 kB / 434.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.673e-05/0.2724, allocations: 59.42 kB / 434.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2724, allocations: 3.938 kB / 434.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.3044, allocations: 6.019 MB / 440.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.9, allocations: 10.58 kB / 440.6 MB, free: 12.03 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.220568101387471]