Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 104.5 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 196 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.445/0.4465, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.004071/0.4507, allocations: 1.466 MB / 401.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004042/0.4511, allocations: 97.25 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.791e-05/0.4512, allocations: 1.094 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.845e-05/0.4513, allocations: 7.922 kB / 401.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-05/0.4514, allocations: 5.031 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.4517, allocations: 23.11 kB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.4518, allocations: 31.02 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.4519, allocations: 7.891 kB / 401.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.058e-05/0.452, allocations: 12 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.513e-05/0.4521, allocations: 15.42 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.4521, allocations: 1.406 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.257e-05/0.4521, allocations: 2.438 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.116e-05/0.4522, allocations: 5.281 kB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.976e-05/0.4522, allocations: 17.2 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.4523, allocations: 23.91 kB / 402 MB, free: 7.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4524, allocations: 7.938 kB / 402 MB, free: 7.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4524, allocations: 0 / 402 MB, free: 7.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.4524, allocations: 0 / 402 MB, free: 7.078 MB / 318.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.0005049/0.4529, allocations: 341.2 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.4529, allocations: 8.031 kB / 402.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.556e-05/0.453, allocations: 38.69 kB / 402.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.453, allocations: 4.938 kB / 402.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.4533, allocations: 180.2 kB / 402.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.4534, allocations: 384 / 402.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.4534, allocations: 4.375 kB / 402.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.4538, allocations: 111.8 kB / 402.6 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.4538, allocations: 7.938 kB / 402.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.4538, allocations: 4 kB / 402.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.4538, allocations: 3.984 kB / 402.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.4539, allocations: 19.92 kB / 402.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.4541, allocations: 157.7 kB / 402.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.4543, allocations: 54.55 kB / 402.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.691e-05/0.4544, allocations: 24.92 kB / 402.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.4544, allocations: 0 / 402.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.4545, allocations: 30.56 kB / 402.9 MB, free: 5.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.4545, allocations: 3.938 kB / 402.9 MB, free: 5.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002913/0.4548, allocations: 81.45 kB / 403 MB, free: 5.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.4549, allocations: 55.41 kB / 403.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/0.455, allocations: 105.8 kB / 403.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.455, allocations: 29.7 kB / 403.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.4551, allocations: 80.14 kB / 403.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.088e-06/0.4551, allocations: 0 / 403.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.4551, allocations: 21.7 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.4553, allocations: 314.8 kB / 403.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.929e-05/0.4553, allocations: 8 kB / 403.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.4553, allocations: 23.44 kB / 403.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.532e-05/0.4554, allocations: 43.36 kB / 403.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4554, allocations: 0 / 403.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001076/0.4555, allocations: 53.58 kB / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4556, allocations: 7.938 kB / 403.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.4556, allocations: 3.984 kB / 403.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.4556, allocations: 4 kB / 403.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.135e-05/0.4557, allocations: 4 kB / 403.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.4557, allocations: 0 / 403.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.906e-05/0.4558, allocations: 8.125 kB / 403.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.4558, allocations: 0 / 403.8 MB, free: 5.016 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.81e-05/0.4559, allocations: 117.8 kB / 403.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.456, allocations: 65.45 kB / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.4561, allocations: 11.91 kB / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4561, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4561, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4561, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.4563, allocations: 153.7 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4563, allocations: 4 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.381e-05/0.4563, allocations: 11.98 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.4564, allocations: 3.938 kB / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.4564, allocations: 0 / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4564, allocations: 256 / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4564, allocations: 0 / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.4566, allocations: 89.42 kB / 404.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.4566, allocations: 92.89 kB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.4567, allocations: 7.938 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.999e-05/0.4567, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-06/0.4567, allocations: 4 kB / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.4567, allocations: 7.984 kB / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.4568, allocations: 79.28 kB / 404.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4568, allocations: 0 / 404.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.4571, allocations: 7.938 kB / 404.4 MB, free: 4.262 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0005451/0.4577, allocations: 0.6241 MB / 405 MB, free: 3.609 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001543/0.4578, allocations: 27.92 kB / 405.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4578, allocations: 0 / 405.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.32e-07/0.4578, allocations: 0 / 405.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.4582, allocations: 19.98 kB / 405.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.4597, allocations: 1.166 MB / 406.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.4601, allocations: 0.6844 MB / 406.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.459e-05/0.4601, allocations: 0 / 406.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.4602, allocations: 15.44 kB / 406.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4602, allocations: 0 / 406.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.4848, allocations: 1.26 MB / 408.2 MB, free: 436 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.13, allocations: 4.562 kB / 408.2 MB, free: 432 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches