Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001319/0.001319, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001392/0.001392, allocations: 209 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.374/1.374, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 47.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2438, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00346/0.2473, allocations: 1.949 MB / 433 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.2496, allocations: 1.274 MB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2497, allocations: 19.81 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.25, allocations: 71.59 kB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003679/0.2504, allocations: 143.4 kB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007275/0.2511, allocations: 266.2 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.2514, allocations: 227.4 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2515, allocations: 38.25 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.2517, allocations: 103.5 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.2518, allocations: 103.5 kB / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.2519, allocations: 12 kB / 435.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.252, allocations: 75.94 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2521, allocations: 75.69 kB / 435.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.2523, allocations: 71.53 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.2527, allocations: 298.8 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2527, allocations: 0 / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2527, allocations: 4 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.391e-06/0.2527, allocations: 0 / 435.8 MB, free: 1.91 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.0009213/0.2536, allocations: 0.5255 MB / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2537, allocations: 12.03 kB / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.716e-05/0.2537, allocations: 46.73 kB / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.446e-05/0.2538, allocations: 28.75 kB / 436.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.2542, allocations: 254.4 kB / 436.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.2542, allocations: 16.38 kB / 436.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.2542, allocations: 15.94 kB / 436.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/0.2549, allocations: 345.8 kB / 437 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2549, allocations: 0 / 437 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.2549, allocations: 3.984 kB / 437 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2549, allocations: 4 kB / 437 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.2551, allocations: 79.88 kB / 437.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.2557, allocations: 361.5 kB / 437.4 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004026/0.2561, allocations: 184 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.2562, allocations: 86.53 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.2563, allocations: 8 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.2564, allocations: 87.31 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.2564, allocations: 0 / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005642/0.257, allocations: 265.4 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.2571, allocations: 140.5 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.2575, allocations: 360.1 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.2575, allocations: 33.7 kB / 438.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2576, allocations: 132.6 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.2577, allocations: 31.78 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.2578, allocations: 57.89 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.2579, allocations: 346.8 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.796e-05/0.258, allocations: 40.45 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.2583, allocations: 237.4 kB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.2586, allocations: 207.2 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.2586, allocations: 4 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003908/0.259, allocations: 245 kB / 439.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.259, allocations: 4 kB / 439.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.259, allocations: 8 kB / 439.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.259, allocations: 4.531 kB / 439.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.2592, allocations: 47.91 kB / 439.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.2592, allocations: 8 kB / 439.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.2593, allocations: 19.88 kB / 439.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.2593, allocations: 8 kB / 440 MB, free: 13.34 MB / 350.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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0001836/0.2595, allocations: 175.7 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.2597, allocations: 141.7 kB / 440.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.26, allocations: 139.5 kB / 440.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.26, allocations: 4 kB / 440.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.26, allocations: 4 kB / 440.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.26, allocations: 11.91 kB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.2603, allocations: 216.9 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2603, allocations: 4 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.2604, allocations: 35.92 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.014e-06/0.2604, allocations: 4.469 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.2604, allocations: 0 / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.2604, allocations: 4 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2604, allocations: 0 / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004188/0.2608, allocations: 270.2 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.261, allocations: 55.72 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.293e-05/0.261, allocations: 8 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.513e-05/0.2611, allocations: 8 kB / 441 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.2611, allocations: 11.92 kB / 441 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.2612, allocations: 12 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.2614, allocations: 255 kB / 441.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2614, allocations: 0 / 441.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.2618, allocations: 47.98 kB / 441.3 MB, free: 11.87 MB / 350.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.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.002447/0.2642, allocations: 1.237 MB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.2645, allocations: 159.5 kB / 442.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2645, allocations: 0 / 442.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.988e-05/0.2646, allocations: 29.05 kB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.2651, allocations: 126.6 kB / 442.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.2683, allocations: 2.732 MB / 445.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.2684, allocations: 173.7 kB / 445.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.593e-05/0.2685, allocations: 34.27 kB / 445.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.2687, allocations: 83.41 kB / 445.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2687, allocations: 4 kB / 445.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03407/0.3028, allocations: 7.292 MB / 453.2 MB, free: 24 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.13, allocations: 2.75 kB / 453.2 MB, free: 24 kB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.517543819267303]