Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.001192/0.001192, allocations: 83.69 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.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.001449/0.001449, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9166/0.9166, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.158e-05/2.359e-05, allocations: 5.234 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002563/0.002587, allocations: 1.989 MB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.003941, allocations: 1.192 MB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.004062, allocations: 7.938 kB / 327.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005389/0.004601, allocations: 167.2 kB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.00489, allocations: 159.3 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.005286, allocations: 223 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.005503, allocations: 239.3 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.005605, allocations: 32.52 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.005729, allocations: 127.6 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.459e-05/0.005824, allocations: 79.78 kB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.005844, allocations: 16 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.00595, allocations: 63.95 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.196e-05/0.006012, allocations: 59.75 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.006062, allocations: 51.84 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.006316, allocations: 267 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.006319, allocations: 0 / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.00632, allocations: 0 / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.006325, allocations: 0 / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000581/0.006906, allocations: 497.7 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.006942, allocations: 8.031 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.007067, allocations: 46.75 kB / 329.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.917e-05/0.007166, allocations: 32.78 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.007605, allocations: 220.8 kB / 330 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.007631, allocations: 8.375 kB / 330 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.007651, allocations: 12.38 kB / 330 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.008193, allocations: 304.2 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.008205, allocations: 0 / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.008223, allocations: 7.984 kB / 330.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.008231, allocations: 4 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.008485, allocations: 75.88 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005218/0.009007, allocations: 341.4 kB / 330.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.009291, allocations: 168 kB / 330.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.009414, allocations: 78.48 kB / 331 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.009442, allocations: 4 kB / 331 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.009597, allocations: 83.31 kB / 331.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.924e-06/0.009599, allocations: 0 / 331.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005335/0.01013, allocations: 233.4 kB / 331.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.01021, allocations: 114.8 kB / 331.4 MB, free: 8.871 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.01045, allocations: 289.8 kB / 331.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.01047, allocations: 29.7 kB / 331.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/0.01052, allocations: 120.6 kB / 331.8 MB, free: 8.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.01055, allocations: 27.78 kB / 331.9 MB, free: 8.391 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.01059, allocations: 41.7 kB / 331.9 MB, free: 8.344 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.01067, allocations: 334.8 kB / 332.2 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.36e-05/0.01072, allocations: 27.98 kB / 332.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.185e-05/0.01079, allocations: 107.6 kB / 332.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.317e-05/0.01088, allocations: 105.4 kB / 332.5 MB, free: 7.727 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01088, allocations: 0 / 332.5 MB, free: 7.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001509/0.01103, allocations: 145.4 kB / 332.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.01105, allocations: 8 kB / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.01105, allocations: 4.156 kB / 332.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.01107, allocations: 4 kB / 332.6 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.073e-05/0.01113, allocations: 19.92 kB / 332.6 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.01113, allocations: 0 / 332.6 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.376e-05/0.01117, allocations: 4 kB / 332.6 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-06/0.01118, allocations: 8 kB / 332.6 MB, free: 7.531 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001009/0.01128, allocations: 153.7 kB / 332.8 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.01156, allocations: 133.8 kB / 332.9 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001913/0.01175, allocations: 115.4 kB / 333 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01176, allocations: 8 kB / 333 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.01176, allocations: 0 / 333 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.01177, allocations: 8.078 kB / 333.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.0119, allocations: 208.5 kB / 333.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.01191, allocations: 0 / 333.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.871e-05/0.01193, allocations: 11.94 kB / 333.3 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.01194, allocations: 0 / 333.3 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.01195, allocations: 8 kB / 333.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.01195, allocations: 3.984 kB / 333.3 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.01195, allocations: 4 kB / 333.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002081/0.01216, allocations: 235.4 kB / 333.5 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.237e-05/0.01222, allocations: 51.75 kB / 333.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.01225, allocations: 8 kB / 333.6 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.144e-05/0.01229, allocations: 12 kB / 333.6 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.01233, allocations: 11.98 kB / 333.6 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.01235, allocations: 7.938 kB / 333.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000168/0.01252, allocations: 205.2 kB / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01252, allocations: 0 / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002019/0.01272, allocations: 47.92 kB / 333.9 MB, free: 6.242 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001166/0.01388, allocations: 1.183 MB / 335 MB, free: 5.215 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001938/0.01408, allocations: 111.8 kB / 335.1 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01408, allocations: 0 / 335.1 MB, free: 5.105 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.422e-05/0.01412, allocations: 23.98 kB / 335.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.01445, allocations: 116.3 kB / 335.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.0162, allocations: 2.171 MB / 337.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.952e-05/0.01629, allocations: 145.4 kB / 337.6 MB, free: 2.508 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.923e-05/0.01636, allocations: 30.33 kB / 337.6 MB, free: 2.477 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.052e-05/0.01644, allocations: 68.47 kB / 337.7 MB, free: 2.41 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01644, allocations: 0 / 337.7 MB, free: 2.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.0368, allocations: 6.43 MB / 344.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/6.777, allocations: 14 kB / 344.1 MB, free: 12.03 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.507190130650997]