Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001614/0.001614, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 59.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2389, allocations: 50.56 MB / 408.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003348/0.2423, allocations: 1.972 MB / 410.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.2446, allocations: 1.34 MB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.2448, allocations: 7.938 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003183/0.2451, allocations: 71.61 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.2455, allocations: 139.4 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008598/0.2464, allocations: 266.7 kB / 412.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.2467, allocations: 219.4 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.2469, allocations: 52.28 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.247, allocations: 95.56 kB / 413 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.2472, allocations: 107.5 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.2472, allocations: 16 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.2474, allocations: 75.95 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.2475, allocations: 67.69 kB / 413.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.2477, allocations: 99.34 kB / 413.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.2481, allocations: 298.8 kB / 413.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2481, allocations: 0 / 413.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2481, allocations: 0 / 413.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.2481, allocations: 0 / 413.6 MB, free: 12.77 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.0009419/0.2491, allocations: 0.6047 MB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2491, allocations: 12.03 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.2492, allocations: 46.73 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.2493, allocations: 36.69 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.2497, allocations: 315.7 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.2498, allocations: 12.38 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.2498, allocations: 15.94 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.2504, allocations: 326.5 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2505, allocations: 0 / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.2505, allocations: 12 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.2505, allocations: 4 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.2507, allocations: 75.83 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.2513, allocations: 414.3 kB / 415.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.2517, allocations: 196 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.2519, allocations: 90.55 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.79e-05/0.252, allocations: 8.219 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.2522, allocations: 83.31 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.2522, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005897/0.2528, allocations: 253.3 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.2529, allocations: 170.2 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.2533, allocations: 358.9 kB / 416.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.2534, allocations: 29.7 kB / 416.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.2535, allocations: 132.7 kB / 416.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.065e-05/0.2536, allocations: 39.77 kB / 416.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.968e-05/0.2536, allocations: 53.89 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.2538, allocations: 338.8 kB / 417.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.2539, allocations: 40.44 kB / 417.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.2542, allocations: 194.9 kB / 417.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.2545, allocations: 215.2 kB / 417.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2545, allocations: 0 / 417.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000404/0.2549, allocations: 233.8 kB / 417.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2549, allocations: 11.12 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.255, allocations: 4 kB / 417.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.255, allocations: 7.984 kB / 417.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.2551, allocations: 44.11 kB / 417.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.2552, allocations: 8.312 kB / 417.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.2553, allocations: 23.89 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.2553, allocations: 12 kB / 418 MB, free: 8 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.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.0001947/0.2555, allocations: 188.2 kB / 418.1 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002255/0.2557, allocations: 137.4 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.159e-05/0.2558, allocations: 33.78 kB / 418.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.2558, allocations: 11.92 kB / 418.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2558, allocations: 4 kB / 418.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2559, allocations: 3.938 kB / 418.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.2562, allocations: 265.4 kB / 418.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2562, allocations: 4 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.2563, allocations: 27.98 kB / 418.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.2563, allocations: 4 kB / 418.6 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2563, allocations: 4 kB / 418.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.949e-06/0.2563, allocations: 15.86 kB / 418.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2564, allocations: 0 / 418.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.2568, allocations: 237.9 kB / 418.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.2569, allocations: 128.9 kB / 419 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.257, allocations: 8 kB / 419 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.257, allocations: 8 kB / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.28e-05/0.2571, allocations: 15.92 kB / 419 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.2571, allocations: 8 kB / 419 MB, free: 6.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.2574, allocations: 253.9 kB / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2574, allocations: 0 / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.2578, allocations: 55.92 kB / 419.3 MB, free: 6.508 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,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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.002341/0.2602, allocations: 1.192 MB / 420.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003529/0.2605, allocations: 151.7 kB / 420.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2605, allocations: 0 / 420.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.2e-05/0.2606, allocations: 31.98 kB / 420.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.2612, allocations: 119.2 kB / 420.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003428/0.2646, allocations: 2.728 MB / 423.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.2651, allocations: 0.779 MB / 424.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.2652, allocations: 42.44 kB / 424.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.2654, allocations: 75.41 kB / 424.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2654, allocations: 0 / 424.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.295, allocations: 6.423 MB / 430.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/8.659, allocations: 16.72 kB / 430.9 MB, free: 10.97 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches