Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.001259/0.001259, allocations: 112.2 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.001302/0.001302, allocations: 189.9 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.331/1.331, 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.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2439, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003604/0.2475, allocations: 2.013 MB / 424.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.2493, allocations: 1.138 MB / 425.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2494, allocations: 3.938 kB / 425.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006449/0.2501, allocations: 159.4 kB / 425.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.2504, allocations: 126.8 kB / 426.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.251, allocations: 246.4 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.2513, allocations: 223.4 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.2515, allocations: 32.56 kB / 426.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.2516, allocations: 99.62 kB / 426.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.2518, allocations: 95.53 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.874e-05/0.2518, allocations: 12 kB / 426.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.2519, allocations: 71.89 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.613e-05/0.252, allocations: 51.83 kB / 426.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.2521, allocations: 87.41 kB / 427 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.2525, allocations: 259.3 kB / 427.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2525, allocations: 0 / 427.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2525, allocations: 0 / 427.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2525, allocations: 0 / 427.2 MB, free: 10.01 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007786/0.2533, allocations: 494.5 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2533, allocations: 8.031 kB / 427.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/0.2534, allocations: 50.73 kB / 427.8 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.2534, allocations: 24.8 kB / 427.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2538, allocations: 225 kB / 428 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2538, allocations: 8.375 kB / 428 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.2539, allocations: 23.86 kB / 428 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.2544, allocations: 298 kB / 428.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2544, allocations: 0 / 428.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.2544, allocations: 4 kB / 428.3 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2544, allocations: 4 kB / 428.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.2546, allocations: 59.91 kB / 428.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.2551, allocations: 357.4 kB / 428.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003163/0.2554, allocations: 168 kB / 428.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2555, allocations: 78.55 kB / 429 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.2556, allocations: 8 kB / 429 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.2557, allocations: 75.33 kB / 429.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.2557, allocations: 0 / 429.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004988/0.2562, allocations: 233.3 kB / 429.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.2563, allocations: 140.5 kB / 429.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.2566, allocations: 284.8 kB / 429.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.2566, allocations: 29.7 kB / 429.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2567, allocations: 116.6 kB / 429.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.2568, allocations: 31.78 kB / 429.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.2569, allocations: 53.89 kB / 429.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.257, allocations: 334.8 kB / 430.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.963e-05/0.2571, allocations: 36.45 kB / 430.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.2573, allocations: 171.9 kB / 430.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.2576, allocations: 203.2 kB / 430.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2576, allocations: 0 / 430.7 MB, free: 6.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003511/0.2579, allocations: 225.6 kB / 430.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.2579, allocations: 4 kB / 430.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2579, allocations: 4 kB / 430.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.258, allocations: 8 kB / 430.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.486e-05/0.2581, allocations: 27.92 kB / 430.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.2581, allocations: 7.984 kB / 430.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2582, allocations: 19.83 kB / 431 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.2582, allocations: 19.94 kB / 431 MB, free: 5.879 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001541/0.2583, allocations: 167.9 kB / 431.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.2585, allocations: 121.8 kB / 431.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.2588, allocations: 119.8 kB / 431.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2588, allocations: 0 / 431.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.2588, allocations: 4 kB / 431.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2588, allocations: 3.938 kB / 431.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.259, allocations: 216.5 kB / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.259, allocations: 4 kB / 431.6 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.416e-05/0.259, allocations: 16.39 kB / 431.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.259, allocations: 8 kB / 431.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.2591, allocations: 4 kB / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2591, allocations: 4 kB / 431.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2591, allocations: 0 / 431.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.2594, allocations: 229.6 kB / 431.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.098e-05/0.2595, allocations: 39.83 kB / 431.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.2595, allocations: 12 kB / 431.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.338e-05/0.2596, allocations: 11.98 kB / 431.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.2596, allocations: 0 / 431.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.2597, allocations: 11.98 kB / 431.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.2598, allocations: 196.4 kB / 432.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2598, allocations: 0 / 432.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.2601, allocations: 47.92 kB / 432.2 MB, free: 4.602 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: 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 (22): * Single equations (assignments): 20 * 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.002189/0.2623, allocations: 1.161 MB / 433.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003079/0.2626, allocations: 140.3 kB / 433.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2626, allocations: 0 / 433.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.544e-05/0.2627, allocations: 19.98 kB / 433.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.2632, allocations: 111.2 kB / 433.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.2659, allocations: 2.37 MB / 436 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.2663, allocations: 0.7634 MB / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.134e-05/0.2664, allocations: 30.42 kB / 436.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2665, allocations: 63.34 kB / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2665, allocations: 0 / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.2987, allocations: 5.855 MB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.16, allocations: 4.062 kB / 442.7 MB, free: 10.08 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 13.464414790971205]