Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001741/0.001741, allocations: 112.4 kB / 20.43 MB, free: 1.449 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.001941/0.001941, allocations: 190.4 kB / 23.72 MB, free: 4.684 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.415/1.415, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2434, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003537/0.2469, allocations: 1.912 MB / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2488, allocations: 1.068 MB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.2489, allocations: 3.938 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006622/0.2496, allocations: 159.3 kB / 425.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.2499, allocations: 115.6 kB / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006186/0.2505, allocations: 210.5 kB / 426.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.2508, allocations: 179.5 kB / 426.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2509, allocations: 21.73 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.2511, allocations: 83.62 kB / 426.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.2512, allocations: 79.62 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.2513, allocations: 8 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.2514, allocations: 55.95 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.493e-05/0.2515, allocations: 43.84 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.957e-05/0.2516, allocations: 71.47 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003817/0.252, allocations: 207.6 kB / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.252, allocations: 0 / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.252, allocations: 0 / 426.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.252, allocations: 0 / 426.8 MB, free: 10.43 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.0008818/0.2529, allocations: 454.7 kB / 427.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.2529, allocations: 12.03 kB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.253, allocations: 42.73 kB / 427.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.2531, allocations: 20.8 kB / 427.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.2534, allocations: 205.2 kB / 427.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2535, allocations: 384 / 427.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.2535, allocations: 11.94 kB / 427.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.2538, allocations: 146.7 kB / 427.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2539, allocations: 3.938 kB / 427.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.2539, allocations: 4 kB / 427.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.2539, allocations: 4 kB / 427.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.254, allocations: 27.98 kB / 427.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.2545, allocations: 325.5 kB / 428 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.2548, allocations: 123.8 kB / 428.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.2548, allocations: 38.56 kB / 428.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.2549, allocations: 4 kB / 428.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.255, allocations: 75.28 kB / 428.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.255, allocations: 0 / 428.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003685/0.2554, allocations: 141.5 kB / 428.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.2555, allocations: 136.5 kB / 428.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.2558, allocations: 264.9 kB / 428.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.2559, allocations: 33.64 kB / 428.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.256, allocations: 124.1 kB / 429 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.79e-05/0.256, allocations: 15.84 kB / 429 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.256, allocations: 33.95 kB / 429 MB, free: 7.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2562, allocations: 326.8 kB / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.007e-05/0.2563, allocations: 23.98 kB / 429.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.682e-05/0.2564, allocations: 65.94 kB / 429.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.2565, allocations: 84.5 kB / 429.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2565, allocations: 0 / 429.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002237/0.2567, allocations: 117.5 kB / 429.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2568, allocations: 4 kB / 429.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2568, allocations: 8.125 kB / 429.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2568, allocations: 0 / 429.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.518e-05/0.2569, allocations: 12 kB / 429.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2569, allocations: 3.984 kB / 429.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.2569, allocations: 11.89 kB / 429.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/0.257, allocations: 4 kB / 429.7 MB, free: 7.273 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,sample1.u,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.0001523/0.2571, allocations: 141.8 kB / 429.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.038e-05/0.2572, allocations: 65.62 kB / 429.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.2574, allocations: 111.3 kB / 430 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2574, allocations: 0 / 430 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2574, allocations: 0 / 430 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/0.2575, allocations: 11.92 kB / 430 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.2577, allocations: 192.6 kB / 430.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2577, allocations: 0 / 430.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-05/0.2577, allocations: 4 kB / 430.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2577, allocations: 0 / 430.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.2577, allocations: 8 kB / 430.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2577, allocations: 0 / 430.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2577, allocations: 7.938 kB / 430.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.258, allocations: 162.7 kB / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.073e-05/0.258, allocations: 31.84 kB / 430.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.2581, allocations: 4 kB / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.325e-05/0.2581, allocations: 11.98 kB / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.2582, allocations: 15.88 kB / 430.4 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2582, allocations: 0 / 430.4 MB, free: 6.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001959/0.2584, allocations: 196.5 kB / 430.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2584, allocations: 0 / 430.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002602/0.2586, allocations: 27.94 kB / 430.6 MB, free: 6.211 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,sample1.u,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.002032/0.2607, allocations: 0.9991 MB / 431.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.2609, allocations: 59.91 kB / 431.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2609, allocations: 0 / 431.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.54e-05/0.261, allocations: 27.92 kB / 431.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.2614, allocations: 70.14 kB / 431.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2637, allocations: 1.932 MB / 433.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.2641, allocations: 0.7318 MB / 434.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.278e-05/0.2642, allocations: 29.45 kB / 434.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/0.2643, allocations: 43.42 kB / 434.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2643, allocations: 0 / 434.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.2977, allocations: 4.716 MB / 439.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.05, allocations: 5.391 kB / 439.2 MB, free: 13.67 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.51214678096585]