Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001359/0.001359, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001542/0.001542, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9354/0.9354, allocations: 173.4 MB / 200.4 MB, free: 9.434 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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.334e-05/2.514e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003043/0.003068, allocations: 1.91 MB / 320.3 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.004871, allocations: 1.137 MB / 321.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.005032, allocations: 11.94 kB / 321.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.005407, allocations: 71.53 kB / 321.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.00569, allocations: 107.5 kB / 321.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007175/0.006408, allocations: 312.5 kB / 322 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.006704, allocations: 223.4 kB / 322.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.006863, allocations: 29.94 kB / 322.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.007021, allocations: 131.6 kB / 322.4 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.007183, allocations: 87.77 kB / 322.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.007214, allocations: 16 kB / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.007392, allocations: 71.88 kB / 322.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.489e-05/0.007477, allocations: 67.75 kB / 322.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.194e-05/0.007549, allocations: 55.78 kB / 322.6 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.007906, allocations: 299 kB / 322.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.00791, allocations: 0 / 322.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.007912, allocations: 4 kB / 322.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.007917, allocations: 0 / 322.9 MB, free: 1.824 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007148/0.008632, allocations: 0.5101 MB / 323.5 MB, free: 1.277 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.008677, allocations: 8.922 kB / 323.5 MB, free: 1.27 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.053e-05/0.008717, allocations: 50.73 kB / 323.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.008772, allocations: 28.75 kB / 323.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/0.009106, allocations: 241.8 kB / 323.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.009129, allocations: 20.31 kB / 323.8 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.009149, allocations: 12.38 kB / 323.8 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.009659, allocations: 344.5 kB / 324.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.009671, allocations: 4 kB / 324.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.009686, allocations: 7.938 kB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.009694, allocations: 4 kB / 324.2 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.009906, allocations: 67.95 kB / 324.2 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004595/0.01037, allocations: 369.3 kB / 324.6 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.01063, allocations: 184 kB / 324.8 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.01073, allocations: 86.53 kB / 324.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.01076, allocations: 8 kB / 324.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.01089, allocations: 83.31 kB / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.673e-06/0.01089, allocations: 0 / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004203/0.01131, allocations: 257.5 kB / 325.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.0114, allocations: 148.5 kB / 325.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.01165, allocations: 340.2 kB / 325.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.01167, allocations: 37.69 kB / 325.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.609e-05/0.01175, allocations: 128.6 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/0.01178, allocations: 27.84 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.01184, allocations: 41.64 kB / 325.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.01195, allocations: 342.8 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.151e-05/0.01201, allocations: 31.98 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.01211, allocations: 150.2 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.01224, allocations: 109.3 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.01224, allocations: 0 / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001883/0.01243, allocations: 157.4 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.01245, allocations: 4 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.01246, allocations: 3.938 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.01247, allocations: 7.984 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.049e-05/0.01256, allocations: 19.94 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001435/0.0127, allocations: 4.312 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.278e-05/0.01275, allocations: 11.94 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.01276, allocations: 4 kB / 326.7 MB, free: 13.71 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.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.0001321/0.01289, allocations: 181.8 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.01304, allocations: 141.4 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.01326, allocations: 131.4 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.01326, allocations: 4 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.01327, allocations: 0 / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.01327, allocations: 0 / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.01345, allocations: 224.5 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01345, allocations: 0 / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/0.01354, allocations: 32.39 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.01354, allocations: 8 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.01355, allocations: 4 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.01356, allocations: 4 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.01356, allocations: 3.984 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.01381, allocations: 260.7 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.01388, allocations: 51.72 kB / 327.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.01391, allocations: 8 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.726e-05/0.01396, allocations: 8.062 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.014, allocations: 11.98 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.01402, allocations: 7.984 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001636/0.01418, allocations: 251.1 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01418, allocations: 4 kB / 328 MB, free: 12.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002128/0.0144, allocations: 43.98 kB / 328.1 MB, free: 12.27 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,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.001258/0.01566, allocations: 1.232 MB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.01587, allocations: 119.8 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.01587, allocations: 320 / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.106e-05/0.01592, allocations: 31.98 kB / 329.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.0163, allocations: 123.2 kB / 329.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.01856, allocations: 2.441 MB / 332 MB, free: 8.352 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.01867, allocations: 161.8 kB / 332.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.495e-05/0.01875, allocations: 33.92 kB / 332.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.704e-05/0.01885, allocations: 76.47 kB / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01885, allocations: 0 / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.04177, allocations: 7.174 MB / 339.5 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.999/7.041, allocations: 12.56 kB / 339.5 MB, free: 0.9453 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.842595357447863]