Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 114.7 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 205.2 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3543, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003729/0.358, allocations: 1.913 MB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.3608, allocations: 1.309 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000275/0.3611, allocations: 7.938 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000439/0.3616, allocations: 63.67 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005799/0.3622, allocations: 131.4 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009233/0.3631, allocations: 242.6 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.3636, allocations: 187.5 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.3637, allocations: 33.67 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.3639, allocations: 71.69 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.3641, allocations: 91.61 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.3641, allocations: 8 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.3643, allocations: 67.91 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.3645, allocations: 67.69 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.3646, allocations: 87.42 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005039/0.3651, allocations: 252.8 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3651, allocations: 0 / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3651, allocations: 0 / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3651, allocations: 0 / 413.3 MB, free: 12.99 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009763/0.3661, allocations: 0.5506 MB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3662, allocations: 8.031 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.207e-05/0.3663, allocations: 42.75 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.17e-05/0.3663, allocations: 24.66 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.3669, allocations: 303.4 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.367, allocations: 4.375 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.367, allocations: 11.94 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004279/0.3674, allocations: 176.4 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.3675, allocations: 7.922 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3675, allocations: 4 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3675, allocations: 0 / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.3676, allocations: 39.97 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006214/0.3683, allocations: 399.2 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002711/0.3686, allocations: 146.5 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.3687, allocations: 63.34 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3687, allocations: 0 / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.3689, allocations: 87.28 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.3689, allocations: 0 / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004482/0.3694, allocations: 169.2 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.3695, allocations: 192.2 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.3699, allocations: 350.9 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.37, allocations: 25.7 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3701, allocations: 132.4 kB / 415.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.3701, allocations: 19.8 kB / 416 MB, free: 9.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-05/0.3702, allocations: 33.62 kB / 416 MB, free: 9.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3703, allocations: 330.8 kB / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.979e-05/0.3704, allocations: 27.98 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.3706, allocations: 104.6 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3707, allocations: 105.8 kB / 416.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3708, allocations: 4 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002883/0.3711, allocations: 133.6 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3711, allocations: 4.188 kB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3711, allocations: 12.06 kB / 416.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3711, allocations: 4 kB / 416.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.3712, allocations: 23.92 kB / 416.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.3713, allocations: 7.938 kB / 416.7 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.3714, allocations: 15.78 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.3714, allocations: 8 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001558/0.3715, allocations: 157.8 kB / 416.9 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3717, allocations: 85.28 kB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.269e-05/0.3717, allocations: 29.73 kB / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.3717, allocations: 0 / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3718, allocations: 4 kB / 417 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3718, allocations: 3.938 kB / 417 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.372, allocations: 249.6 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.372, allocations: 0 / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.625e-05/0.3721, allocations: 15.98 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3721, allocations: 0 / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3721, allocations: 8 kB / 417.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.3721, allocations: 8.078 kB / 417.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3721, allocations: 4 kB / 417.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.3724, allocations: 183.2 kB / 417.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3726, allocations: 116.7 kB / 417.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.3726, allocations: 8 kB / 417.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.3727, allocations: 8 kB / 417.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.3727, allocations: 15.92 kB / 417.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.3728, allocations: 4 kB / 417.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.373, allocations: 253.9 kB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3731, allocations: 0 / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.3733, allocations: 35.98 kB / 417.9 MB, free: 7.801 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001475/0.3748, allocations: 1.035 MB / 419 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002555/0.3751, allocations: 88.16 kB / 419.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3751, allocations: 0 / 419.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.278e-05/0.3752, allocations: 27.98 kB / 419.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.3757, allocations: 88.89 kB / 419.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.3784, allocations: 2.317 MB / 421.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.3788, allocations: 0.7515 MB / 422.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.3789, allocations: 29.53 kB / 422.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.379, allocations: 59.42 kB / 422.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3791, allocations: 0 / 422.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.4051, allocations: 5.736 MB / 428.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.938/8.343, allocations: 7.875 kB / 428.1 MB, free: 13.75 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches