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.0008357/0.0008357, allocations: 76.08 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008462/0.0008462, allocations: 157 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8912/0.8912, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 3.657e-06/3.657e-06, allocations: 4 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.666e-05, allocations: 5.516 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002217/0.002234, allocations: 1.852 MB / 320.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.0034, allocations: 0.9855 MB / 321.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.00351, allocations: 11.88 kB / 321.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.004057, allocations: 163.3 kB / 321.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.004268, allocations: 119.5 kB / 321.6 MB, free: 3.207 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.004606, allocations: 203.2 kB / 321.8 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.004799, allocations: 183.5 kB / 321.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.769e-05/0.004896, allocations: 29.7 kB / 322 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.005001, allocations: 99.67 kB / 322.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.005086, allocations: 63.86 kB / 322.1 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.005104, allocations: 12 kB / 322.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.005195, allocations: 55.91 kB / 322.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.156e-05/0.005247, allocations: 43.83 kB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.005292, allocations: 39.86 kB / 322.3 MB, free: 2.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.005504, allocations: 211.2 kB / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.005506, allocations: 0 / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.005507, allocations: 0 / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.00551, allocations: 0 / 322.5 MB, free: 2.285 MB / 282.7 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.0004774/0.005988, allocations: 438.1 kB / 322.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.006024, allocations: 12.92 kB / 322.9 MB, free: 1.812 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.49e-05/0.006049, allocations: 38.75 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.006081, allocations: 20.84 kB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.006294, allocations: 212.8 kB / 323.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.006305, allocations: 8.375 kB / 323.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.006316, allocations: 4.375 kB / 323.2 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.00654, allocations: 138.2 kB / 323.3 MB, free: 1.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.006547, allocations: 11.94 kB / 323.3 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.006556, allocations: 0 / 323.3 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.00656, allocations: 0 / 323.3 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.807e-05/0.006628, allocations: 43.91 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000387/0.007015, allocations: 317.5 kB / 323.7 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.007153, allocations: 107.9 kB / 323.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.656e-05/0.007199, allocations: 38.56 kB / 323.8 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.007217, allocations: 11.94 kB / 323.9 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001107/0.007328, allocations: 75.38 kB / 323.9 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.007329, allocations: 0 / 323.9 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002945/0.007624, allocations: 145.5 kB / 324.1 MB, free: 0.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.007683, allocations: 110.8 kB / 324.2 MB, free: 376 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.007907, allocations: 269.7 kB / 324.4 MB, free: 100 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.007922, allocations: 25.7 kB / 324.5 MB, free: 68 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.008007, allocations: 116.1 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.008028, allocations: 20.09 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.008074, allocations: 29.7 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.008166, allocations: 326.8 kB / 324.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.338e-05/0.008209, allocations: 23.92 kB / 325 MB, free: 15.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.638e-05/0.008275, allocations: 68.27 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.468e-05/0.00836, allocations: 61.89 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.008362, allocations: 0 / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001388/0.008501, allocations: 97.55 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.008514, allocations: 7.984 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.008518, allocations: 4.062 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.008528, allocations: 4 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.043e-05/0.008589, allocations: 11.94 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.008594, allocations: 0 / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.398e-05/0.008638, allocations: 4 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.008646, allocations: 7.984 kB / 325.2 MB, free: 15.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001079/0.008754, allocations: 137.8 kB / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/0.008819, allocations: 61.55 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.009011, allocations: 119.6 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.009013, allocations: 0 / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.009017, allocations: 0 / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.009022, allocations: 4 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.009198, allocations: 200.5 kB / 325.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.0092, allocations: 0 / 325.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.477e-05/0.009225, allocations: 15.94 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.009226, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.009237, allocations: 4 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.009238, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.009239, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.009419, allocations: 166.6 kB / 325.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.009473, allocations: 31.84 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.009494, allocations: 4 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.155e-05/0.009536, allocations: 8.047 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.00957, allocations: 8 kB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.009586, allocations: 7.984 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.009747, allocations: 189.2 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009747, allocations: 4 kB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.009985, allocations: 31.92 kB / 326.2 MB, free: 14.19 MB / 298.7 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.0011/0.01109, allocations: 1.035 MB / 327.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.01123, allocations: 63.84 kB / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01124, allocations: 0 / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.292e-05/0.01129, allocations: 31.92 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.01161, allocations: 63.22 kB / 327.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.01396, allocations: 1.887 MB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.01408, allocations: 111.4 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.422e-05/0.01414, allocations: 29.59 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.0142, allocations: 52.48 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0142, allocations: 4 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.03365, allocations: 5.368 MB / 334.8 MB, free: 5.648 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.085/7.119, allocations: 8.047 kB / 334.8 MB, free: 5.641 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/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: 8.800686945207417]