Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001609/0.001609, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001878/0.001878, allocations: 181.8 kB / 23.72 MB, free: 4.699 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.38/1.38, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 51.91 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2572, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003301/0.2605, allocations: 1.9 MB / 424.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.2625, allocations: 1.149 MB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.2627, allocations: 7.938 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.263, allocations: 71.66 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.2633, allocations: 91.59 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007762/0.2641, allocations: 259 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.2643, allocations: 179.5 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2645, allocations: 21.73 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.2646, allocations: 71.69 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2647, allocations: 83.67 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.2647, allocations: 11.94 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.2649, allocations: 75.94 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.533e-05/0.265, allocations: 47.84 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2651, allocations: 79.47 kB / 426.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.2655, allocations: 239.3 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2655, allocations: 4 kB / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2655, allocations: 0 / 426.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.2655, allocations: 0 / 426.9 MB, free: 10.31 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.000739/0.2662, allocations: 466.6 kB / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2663, allocations: 8.031 kB / 427.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.2663, allocations: 42.73 kB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.2664, allocations: 28.73 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.2668, allocations: 237.4 kB / 427.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.2668, allocations: 384 / 427.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.2669, allocations: 11.94 kB / 427.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.2672, allocations: 158.8 kB / 427.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.2672, allocations: 4 kB / 427.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.2672, allocations: 4 kB / 427.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2672, allocations: 0 / 427.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.2673, allocations: 39.91 kB / 427.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.2679, allocations: 353.4 kB / 428.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/0.2682, allocations: 115.9 kB / 428.3 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.636e-05/0.2683, allocations: 38.56 kB / 428.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.2683, allocations: 8 kB / 428.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.2685, allocations: 79.38 kB / 428.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.2685, allocations: 0 / 428.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004034/0.2689, allocations: 153.4 kB / 428.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.269, allocations: 166.5 kB / 428.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.2693, allocations: 329.8 kB / 429.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2694, allocations: 33.7 kB / 429.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.449e-05/0.2695, allocations: 120.1 kB / 429.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.2695, allocations: 19.89 kB / 429.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.537e-05/0.2696, allocations: 33.67 kB / 429.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2697, allocations: 330.8 kB / 429.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.142e-05/0.2698, allocations: 27.98 kB / 429.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.2699, allocations: 86.8 kB / 429.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.2701, allocations: 88.2 kB / 429.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2701, allocations: 0 / 429.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002315/0.2703, allocations: 113.5 kB / 429.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2703, allocations: 8 kB / 429.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.2703, allocations: 0 / 429.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.2704, allocations: 4 kB / 429.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.2705, allocations: 19.92 kB / 429.9 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.2705, allocations: 8.125 kB / 430 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.016e-05/0.2706, allocations: 19.83 kB / 430 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-06/0.2706, allocations: 4 kB / 430 MB, free: 6.906 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,subSample1.y,subSample1.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.0001462/0.2707, allocations: 150.5 kB / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/0.2708, allocations: 65.5 kB / 430.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.2711, allocations: 123.7 kB / 430.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.2711, allocations: 4.125 kB / 430.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2711, allocations: 4 kB / 430.3 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2711, allocations: 7.938 kB / 430.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.2714, allocations: 208.6 kB / 430.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2714, allocations: 7.922 kB / 430.5 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.2714, allocations: 15.97 kB / 430.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2714, allocations: 0 / 430.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.2714, allocations: 4 kB / 430.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2714, allocations: 0 / 430.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.2714, allocations: 7.984 kB / 430.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.2717, allocations: 166.5 kB / 430.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.842e-05/0.2718, allocations: 43.77 kB / 430.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.2718, allocations: 4 kB / 430.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.434e-05/0.2719, allocations: 4 kB / 430.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.272, allocations: 15.92 kB / 430.8 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.272, allocations: 4 kB / 430.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.2722, allocations: 241.2 kB / 431 MB, free: 5.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2722, allocations: 0 / 431 MB, free: 5.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.2725, allocations: 35.98 kB / 431.1 MB, free: 5.723 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,subSample1.y,sample1.y,subSample1.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.002063/0.2746, allocations: 1.019 MB / 432.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.2748, allocations: 71.91 kB / 432.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2748, allocations: 3.938 kB / 432.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.383e-05/0.2749, allocations: 31.92 kB / 432.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.2753, allocations: 55.44 kB / 432.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.2781, allocations: 2.198 MB / 434.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.2786, allocations: 0.7359 MB / 435.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.866e-05/0.2787, allocations: 29.42 kB / 435.2 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.2788, allocations: 59.41 kB / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of SimCode: time 5.72e-07/0.2788, allocations: 0 / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.3119, allocations: 5.407 MB / 440.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.22, allocations: 0 / 440.7 MB, free: 12.19 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.63664229400456]