Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001371/0.001371, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001494/0.001494, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.387/1.387, 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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2641, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003567/0.2677, allocations: 1.897 MB / 433 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.2698, allocations: 1.243 MB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2699, allocations: 11.88 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.2702, allocations: 67.66 kB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003636/0.2706, allocations: 143.4 kB / 434.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006078/0.2712, allocations: 230.5 kB / 434.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.2715, allocations: 191.5 kB / 434.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2716, allocations: 25.8 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.2717, allocations: 87.56 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2718, allocations: 87.61 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2718, allocations: 8 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.272, allocations: 75.94 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.308e-05/0.2721, allocations: 55.78 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.797e-05/0.2722, allocations: 67.52 kB / 435.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.2725, allocations: 247.3 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2725, allocations: 3.938 kB / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2725, allocations: 0 / 435.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2725, allocations: 0 / 435.5 MB, free: 2.203 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.0007183/0.2732, allocations: 490.4 kB / 436 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2733, allocations: 16.03 kB / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.2733, allocations: 38.73 kB / 436 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.127e-05/0.2734, allocations: 24.8 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.2738, allocations: 242.5 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.2738, allocations: 8.375 kB / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.2738, allocations: 15.92 kB / 436.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.2742, allocations: 201.2 kB / 436.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2742, allocations: 0 / 436.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2742, allocations: 4 kB / 436.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2742, allocations: 4 kB / 436.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.2744, allocations: 43.91 kB / 436.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005394/0.2749, allocations: 362.2 kB / 436.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.2752, allocations: 142.5 kB / 437.1 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2753, allocations: 59.42 kB / 437.1 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.2753, allocations: 7.938 kB / 437.1 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001703/0.2755, allocations: 79.38 kB / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.2755, allocations: 0 / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.00042/0.2759, allocations: 177.4 kB / 437.4 MB, free: 112 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.276, allocations: 158.6 kB / 437.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.2764, allocations: 356.1 kB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.2765, allocations: 33.7 kB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.2766, allocations: 128.3 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.2766, allocations: 23.95 kB / 438.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.2766, allocations: 33.67 kB / 438.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2768, allocations: 338.8 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.536e-05/0.2769, allocations: 27.92 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.2771, allocations: 151.1 kB / 438.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.2773, allocations: 114.1 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2773, allocations: 4 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002562/0.2775, allocations: 133.4 kB / 438.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.2775, allocations: 8 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2775, allocations: 3.984 kB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.2776, allocations: 8.188 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.2777, allocations: 19.94 kB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.2777, allocations: 7.984 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.533e-05/0.2778, allocations: 15.88 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.2778, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,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 (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.0001504/0.2779, allocations: 150.7 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.278, allocations: 81.44 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002891/0.2783, allocations: 135.4 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2783, allocations: 7.938 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2783, allocations: 0 / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.2784, allocations: 7.938 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.2786, allocations: 200.7 kB / 439.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2786, allocations: 0 / 439.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.663e-05/0.2787, allocations: 12 kB / 439.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.2787, allocations: 4 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.2787, allocations: 7.984 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2787, allocations: 4 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.2787, allocations: 3.938 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.279, allocations: 199.4 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/0.2791, allocations: 39.77 kB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.2791, allocations: 8.062 kB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.429e-05/0.2792, allocations: 8 kB / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.2793, allocations: 19.91 kB / 439.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.2793, allocations: 7.938 kB / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.2795, allocations: 255 kB / 440 MB, free: 13.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2795, allocations: 0 / 440 MB, free: 13.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000282/0.2798, allocations: 39.92 kB / 440.1 MB, free: 13.17 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,backSample1.y,shiftSample1.y,backSample1.u,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.002109/0.2819, allocations: 1.068 MB / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002893/0.2822, allocations: 91.75 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2822, allocations: 4 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.615e-05/0.2823, allocations: 23.98 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.2827, allocations: 84.12 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.2855, allocations: 2.33 MB / 443.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.2856, allocations: 140.2 kB / 443.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.343e-05/0.2857, allocations: 29.78 kB / 443.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2859, allocations: 67.41 kB / 443.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2859, allocations: 0 / 443.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3204, allocations: 6.459 MB / 450.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.99, allocations: 7.922 kB / 450.4 MB, free: 2.961 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.387136580888182]