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.001649/0.001649, 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.00167/0.00167, allocations: 195.6 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.377/1.377, allocations: 225.7 MB / 252.5 MB, free: 12.81 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.001486/0.001486, allocations: 51.91 kB / 370.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2363, allocations: 52.19 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003653/0.2399, allocations: 1.951 MB / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.2418, allocations: 1.056 MB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.242, allocations: 7.938 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006205/0.2426, allocations: 163.4 kB / 425.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.2429, allocations: 123.5 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.2435, allocations: 246.9 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002866/0.2438, allocations: 223.4 kB / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.2439, allocations: 32.31 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.2441, allocations: 95.62 kB / 426.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.2442, allocations: 87.59 kB / 426.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.2443, allocations: 16 kB / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.2444, allocations: 67.89 kB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-05/0.2445, allocations: 55.77 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.2446, allocations: 67.59 kB / 426.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.2449, allocations: 256.8 kB / 427 MB, free: 9.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2449, allocations: 3.938 kB / 427 MB, free: 9.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2449, allocations: 3.938 kB / 427 MB, free: 9.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.2449, allocations: 0 / 427 MB, free: 9.926 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.0007994/0.2457, allocations: 482.6 kB / 427.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2458, allocations: 12.03 kB / 427.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.408e-05/0.2458, allocations: 50.73 kB / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.627e-05/0.2459, allocations: 24.8 kB / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.2462, allocations: 229 kB / 427.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.2463, allocations: 8.375 kB / 427.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.2463, allocations: 19.94 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.2468, allocations: 293.1 kB / 428.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2468, allocations: 0 / 428.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2469, allocations: 0 / 428.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2469, allocations: 4 kB / 428.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.247, allocations: 71.89 kB / 428.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005115/0.2475, allocations: 345.5 kB / 428.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/0.2479, allocations: 164 kB / 428.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.248, allocations: 78.53 kB / 428.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.248, allocations: 4 kB / 428.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.2482, allocations: 79.31 kB / 428.8 MB, free: 7.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.2482, allocations: 0 / 428.8 MB, free: 7.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005039/0.2487, allocations: 237.3 kB / 429.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.625e-05/0.2488, allocations: 118.8 kB / 429.2 MB, free: 7.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.2491, allocations: 272.8 kB / 429.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.2491, allocations: 33.7 kB / 429.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.2492, allocations: 116.6 kB / 429.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.2493, allocations: 31.77 kB / 429.6 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/0.2493, allocations: 58.25 kB / 429.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2495, allocations: 334.8 kB / 430 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.364e-05/0.2496, allocations: 44.38 kB / 430 MB, free: 6.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.2498, allocations: 184 kB / 430.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.2501, allocations: 215.2 kB / 430.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2501, allocations: 0 / 430.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003698/0.2504, allocations: 225.3 kB / 430.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2505, allocations: 8 kB / 430.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2505, allocations: 4.312 kB / 430.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2505, allocations: 4 kB / 430.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.891e-05/0.2506, allocations: 27.92 kB / 430.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.2506, allocations: 11.98 kB / 430.7 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.2507, allocations: 19.89 kB / 430.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.2507, allocations: 12 kB / 430.7 MB, free: 5.812 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.0001628/0.2509, allocations: 172.1 kB / 430.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.2511, allocations: 121.5 kB / 431 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.2513, allocations: 123.4 kB / 431.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.2513, allocations: 0 / 431.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2513, allocations: 4 kB / 431.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2513, allocations: 3.938 kB / 431.2 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.2516, allocations: 200.6 kB / 431.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2516, allocations: 0 / 431.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.786e-05/0.2516, allocations: 15.92 kB / 431.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2516, allocations: 4 kB / 431.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.2516, allocations: 8 kB / 431.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2516, allocations: 0 / 431.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2516, allocations: 4 kB / 431.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.252, allocations: 230.4 kB / 431.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.797e-05/0.2521, allocations: 39.83 kB / 431.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.2521, allocations: 8 kB / 431.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/0.2522, allocations: 11.98 kB / 431.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.2523, allocations: 7.938 kB / 431.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.2523, allocations: 7.984 kB / 431.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.2525, allocations: 204.5 kB / 431.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2525, allocations: 0 / 431.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.2528, allocations: 43.94 kB / 431.9 MB, free: 4.539 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 (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.002353/0.2552, allocations: 1.199 MB / 433.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003266/0.2555, allocations: 144.1 kB / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2555, allocations: 0 / 433.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.946e-05/0.2556, allocations: 31.97 kB / 433.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.2561, allocations: 122.2 kB / 433.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.259, allocations: 2.386 MB / 435.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.2591, allocations: 156.6 kB / 436 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.937e-05/0.2592, allocations: 30.67 kB / 436 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.2593, allocations: 67.41 kB / 436.1 MB, free: 364 kB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2593, allocations: 0 / 436.1 MB, free: 364 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03543/0.2948, allocations: 6.346 MB / 442.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.94, allocations: 0 / 442.4 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.307203621137887]