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.001322/0.001322, 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.001405/0.001405, allocations: 193.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.397/1.397, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001666/0.001666, allocations: 59.91 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2479, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003545/0.2514, allocations: 1.873 MB / 424.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.2532, allocations: 0.9821 MB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.2533, allocations: 7.938 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006527/0.254, allocations: 159.2 kB / 425.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.2543, allocations: 107.6 kB / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.2549, allocations: 205.4 kB / 425.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000284/0.2551, allocations: 183.5 kB / 426.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.2553, allocations: 29.47 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2554, allocations: 83.62 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.2555, allocations: 71.67 kB / 426.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.2555, allocations: 8 kB / 426.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.2557, allocations: 55.91 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-05/0.2558, allocations: 51.83 kB / 426.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.423e-05/0.2558, allocations: 47.67 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.2562, allocations: 209 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2562, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2562, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2562, allocations: 0 / 426.6 MB, free: 10.36 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.0007853/0.257, allocations: 446.7 kB / 427.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.257, allocations: 12.03 kB / 427.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.199e-05/0.2571, allocations: 34.75 kB / 427.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.548e-05/0.2571, allocations: 28.78 kB / 427.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.2575, allocations: 205.2 kB / 427.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2575, allocations: 4.375 kB / 427.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.2575, allocations: 11.94 kB / 427.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.2578, allocations: 133.9 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2579, allocations: 7.938 kB / 427.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.2579, allocations: 4 kB / 427.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2579, allocations: 4 kB / 427.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.258, allocations: 35.92 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005214/0.2585, allocations: 329.5 kB / 427.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.2587, allocations: 107.9 kB / 428 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.324e-05/0.2588, allocations: 46.56 kB / 428 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.2589, allocations: 3.938 kB / 428 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.259, allocations: 71.38 kB / 428.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.259, allocations: 8 kB / 428.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003899/0.2594, allocations: 141.5 kB / 428.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.2595, allocations: 114.8 kB / 428.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.2598, allocations: 264.9 kB / 428.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.2598, allocations: 29.7 kB / 428.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.2599, allocations: 116.1 kB / 428.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.26, allocations: 19.89 kB / 428.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.26, allocations: 25.72 kB / 428.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002365/0.2602, allocations: 331.1 kB / 429.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.2603, allocations: 20 kB / 429.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2604, allocations: 94.83 kB / 429.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.2606, allocations: 80.22 kB / 429.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2606, allocations: 0 / 429.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002209/0.2608, allocations: 121.6 kB / 429.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2608, allocations: 6.188 kB / 429.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2608, allocations: 3.938 kB / 429.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.2608, allocations: 4 kB / 429.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.675e-05/0.2609, allocations: 8 kB / 429.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.2609, allocations: 11.92 kB / 429.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.261, allocations: 15.83 kB / 429.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.261, allocations: 15.92 kB / 429.5 MB, free: 7.207 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.0001317/0.2611, allocations: 133.8 kB / 429.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2612, allocations: 73.52 kB / 429.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.2615, allocations: 111.4 kB / 429.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2615, allocations: 0 / 429.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.2615, allocations: 4 kB / 429.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.2615, allocations: 3.938 kB / 429.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.2617, allocations: 184.8 kB / 430 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2617, allocations: 320 / 430 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.477e-05/0.2617, allocations: 7.938 kB / 430 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.2617, allocations: 4 kB / 430 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.2618, allocations: 7.984 kB / 430 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2618, allocations: 4.062 kB / 430 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2618, allocations: 4 kB / 430 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.262, allocations: 166.6 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.2621, allocations: 31.81 kB / 430.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/0.2621, allocations: 8 kB / 430.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.566e-05/0.2622, allocations: 0 / 430.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.2622, allocations: 11.92 kB / 430.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.2622, allocations: 4 kB / 430.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002094/0.2625, allocations: 200.5 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2625, allocations: 0 / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.2627, allocations: 28 kB / 430.4 MB, free: 6.148 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 (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.002062/0.2648, allocations: 1.035 MB / 431.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002079/0.265, allocations: 71.84 kB / 431.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.265, allocations: 0 / 431.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.171e-05/0.2651, allocations: 27.98 kB / 431.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.2654, allocations: 79.88 kB / 431.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.2677, allocations: 1.933 MB / 433.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.2678, allocations: 123.2 kB / 433.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.74e-05/0.2679, allocations: 25.72 kB / 433.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.423e-05/0.268, allocations: 47.42 kB / 433.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.268, allocations: 0 / 433.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03377/0.3018, allocations: 5.258 MB / 439 MB, free: 13.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.81, allocations: 15.12 kB / 439 MB, free: 13.62 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.247615700121969]