Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001471/0.001471, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001902/0.001902, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3589, allocations: 50.53 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002627/0.3616, allocations: 1.468 MB / 410.2 MB, free: 72 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001981/0.3619, allocations: 35.91 kB / 410.3 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.853e-05/0.3619, allocations: 0 / 410.3 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.733e-05/0.362, allocations: 3.938 kB / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.855e-05/0.362, allocations: 3.938 kB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.3623, allocations: 15.98 kB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3624, allocations: 35.91 kB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3625, allocations: 4 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.3626, allocations: 15.92 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.108e-05/0.3626, allocations: 15.92 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.3626, allocations: 4 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.997e-06/0.3627, allocations: 4 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.3627, allocations: 7.938 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.3627, allocations: 15.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.453e-05/0.3628, allocations: 31.89 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3629, allocations: 0 / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3629, allocations: 0 / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3629, allocations: 0 / 410.4 MB, free: 15.88 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004958/0.3634, allocations: 345.2 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3634, allocations: 8.031 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.3635, allocations: 38.75 kB / 410.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.668e-05/0.3635, allocations: 4.844 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.3637, allocations: 188.2 kB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3638, allocations: 384 / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.3638, allocations: 8.375 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.3642, allocations: 119.8 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3642, allocations: 7.938 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.3642, allocations: 4 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.3642, allocations: 4 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.3644, allocations: 23.95 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.3645, allocations: 157.7 kB / 411.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.3647, allocations: 54.48 kB / 411.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.863e-05/0.3648, allocations: 28.92 kB / 411.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.3648, allocations: 8 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.3648, allocations: 34.5 kB / 411.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.3648, allocations: 0 / 411.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002987/0.3651, allocations: 85.5 kB / 411.5 MB, free: 14.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.3652, allocations: 55.34 kB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.677e-05/0.3653, allocations: 105.8 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.3653, allocations: 25.7 kB / 411.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.3654, allocations: 84.14 kB / 411.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.3654, allocations: 11.98 kB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.3654, allocations: 17.72 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3655, allocations: 310.8 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.463e-05/0.3656, allocations: 8 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.181e-05/0.3656, allocations: 31.67 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.133e-05/0.3657, allocations: 43.38 kB / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3657, allocations: 0 / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.276e-05/0.3658, allocations: 57.62 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3658, allocations: 7.938 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3658, allocations: 0 / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3658, allocations: 8.125 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.698e-05/0.3659, allocations: 15.88 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3659, allocations: 0 / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.09e-05/0.3659, allocations: 3.906 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.3659, allocations: 4 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.856e-05/0.366, allocations: 121.8 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3662, allocations: 65.61 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.3662, allocations: 3.906 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3662, allocations: 4 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3662, allocations: 4 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3663, allocations: 0 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.3664, allocations: 157.7 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3664, allocations: 0 / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.877e-05/0.3664, allocations: 11.94 kB / 412.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3665, allocations: 3.938 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.3665, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3665, allocations: 3.984 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3665, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.3667, allocations: 93.25 kB / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-05/0.3667, allocations: 89.14 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.3667, allocations: 3.938 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.53e-05/0.3668, allocations: 7.984 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-06/0.3668, allocations: 0 / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.3668, allocations: 0 / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.108e-05/0.3668, allocations: 87.41 kB / 412.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3669, allocations: 3.938 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001845/0.367, allocations: 4 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0006329/0.3677, allocations: 0.6591 MB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001496/0.3678, allocations: 27.92 kB / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3679, allocations: 0 / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.3679, allocations: 0 / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.3682, allocations: 34.52 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3694, allocations: 1.177 MB / 414.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.3698, allocations: 0.6807 MB / 415.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.381e-05/0.3699, allocations: 4 kB / 415.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.3699, allocations: 15.44 kB / 415.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3699, allocations: 0 / 415.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.3898, allocations: 1.373 MB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.346/8.736, allocations: 10.66 kB / 416.9 MB, free: 8.961 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches