Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001704/0.001704, allocations: 114 kB / 20.44 MB, free: 1.469 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.002001/0.002001, allocations: 213.4 kB / 23.74 MB, free: 4.695 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.416/1.416, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 59.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2624, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004139/0.2666, allocations: 1.921 MB / 433.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.269, allocations: 1.316 MB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.2692, allocations: 3.938 kB / 434.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003589/0.2695, allocations: 71.66 kB / 434.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003837/0.2699, allocations: 135.4 kB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007216/0.2706, allocations: 226.9 kB / 434.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.2709, allocations: 183.5 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.271, allocations: 21.73 kB / 435 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2712, allocations: 79.69 kB / 435.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.2713, allocations: 87.61 kB / 435.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.196e-05/0.2713, allocations: 12 kB / 435.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.2715, allocations: 75.89 kB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.93e-05/0.2716, allocations: 55.81 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.147e-05/0.2717, allocations: 71.5 kB / 435.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.272, allocations: 251.3 kB / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.272, allocations: 0 / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.272, allocations: 0 / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.272, allocations: 0 / 435.7 MB, free: 2.188 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.0008124/0.2729, allocations: 474.5 kB / 436.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.2729, allocations: 12.03 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.496e-05/0.2729, allocations: 42.73 kB / 436.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.273, allocations: 24.8 kB / 436.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004565/0.2735, allocations: 233.4 kB / 436.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.2735, allocations: 4.375 kB / 436.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.2735, allocations: 8.375 kB / 436.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.2738, allocations: 159.7 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2739, allocations: 0 / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.2739, allocations: 8 kB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2739, allocations: 0 / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.274, allocations: 35.92 kB / 436.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.2746, allocations: 361.4 kB / 437 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.2748, allocations: 119.8 kB / 437.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.686e-05/0.2749, allocations: 46.56 kB / 437.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.2749, allocations: 4 kB / 437.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.2751, allocations: 71.38 kB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.526e-06/0.2751, allocations: 3.984 kB / 437.2 MB, free: 428 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003846/0.2755, allocations: 161.4 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.2756, allocations: 166.1 kB / 437.6 MB, free: 56 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.276, allocations: 333.9 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.276, allocations: 25.7 kB / 437.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.2761, allocations: 136.1 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.2762, allocations: 11.91 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.2762, allocations: 33.95 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.2764, allocations: 338.8 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.2765, allocations: 23.98 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.2766, allocations: 94.72 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.2767, allocations: 84.22 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2767, allocations: 0 / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002288/0.277, allocations: 121.5 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.277, allocations: 7.984 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.277, allocations: 8.125 kB / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.277, allocations: 0 / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2771, allocations: 19.94 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2771, allocations: 0 / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.757e-05/0.2772, allocations: 16.23 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2772, allocations: 4 kB / 438.8 MB, free: 14.75 MB / 350.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.0001506/0.2774, allocations: 154.5 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.712e-05/0.2775, allocations: 77.47 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/0.2777, allocations: 123.3 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2777, allocations: 3.984 kB / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2777, allocations: 0 / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2777, allocations: 0 / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.2779, allocations: 216.7 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2779, allocations: 0 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.39e-05/0.278, allocations: 11.98 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.278, allocations: 4 kB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.278, allocations: 0 / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.278, allocations: 4.031 kB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.278, allocations: 4 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.2783, allocations: 166.5 kB / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.226e-05/0.2784, allocations: 35.84 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.2784, allocations: 7.984 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.091e-05/0.2785, allocations: 8 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.2785, allocations: 8.078 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.2785, allocations: 11.94 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.2788, allocations: 245.2 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2788, allocations: 0 / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.279, allocations: 39.88 kB / 439.9 MB, free: 13.56 MB / 350.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 (9): * Single equations (assignments): 7 * 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.001956/0.281, allocations: 1.017 MB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000234/0.2812, allocations: 71.91 kB / 441 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2812, allocations: 0 / 441 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.95e-05/0.2813, allocations: 28.23 kB / 441 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/0.2817, allocations: 71.33 kB / 441.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.2844, allocations: 2.234 MB / 443.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.2847, allocations: 0.7437 MB / 444 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.147e-05/0.2848, allocations: 37.44 kB / 444.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2849, allocations: 59.42 kB / 444.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2849, allocations: 3.938 kB / 444.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.3188, allocations: 5.532 MB / 449.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.14, allocations: 7.75 kB / 449.7 MB, free: 3.777 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.61761638103053]