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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 106.7 kB / 16.92 MB, free: 5.781 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.001547/0.001547, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.454/1.454, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 47.8 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1235, allocations: 49.45 MB / 350.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.003659/0.1272, allocations: 1.452 MB / 351.5 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004097/0.1277, allocations: 103.6 kB / 351.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.1278, allocations: 0 / 351.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.1279, allocations: 3.938 kB / 351.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.319e-05/0.1279, allocations: 0 / 351.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.1283, allocations: 27.03 kB / 351.6 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.1284, allocations: 27.92 kB / 351.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.1285, allocations: 19.92 kB / 351.7 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.562e-05/0.1286, allocations: 11.98 kB / 351.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.339e-05/0.1287, allocations: 7.938 kB / 351.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.1287, allocations: 0 / 351.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.488e-05/0.1287, allocations: 4 kB / 351.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.1287, allocations: 7.938 kB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.1288, allocations: 15.92 kB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.1289, allocations: 27.91 kB / 351.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1289, allocations: 0 / 351.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1289, allocations: 0 / 351.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1289, allocations: 4 kB / 351.8 MB, free: 2.715 MB / 286.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.0005309/0.1295, allocations: 343.7 kB / 352.1 MB, free: 2.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.1295, allocations: 8.031 kB / 352.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.1296, allocations: 8.844 kB / 352.1 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.1299, allocations: 172.3 kB / 352.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.1299, allocations: 8.375 kB / 352.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.1299, allocations: 384 / 352.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.1304, allocations: 113.2 kB / 352.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1304, allocations: 192 / 352.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1304, allocations: 3.938 kB / 352.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.1304, allocations: 0 / 352.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.513e-05/0.1305, allocations: 19.98 kB / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002838/0.1308, allocations: 157.7 kB / 352.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.1311, allocations: 62.45 kB / 352.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.581e-05/0.1312, allocations: 24.89 kB / 352.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.1312, allocations: 0 / 352.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.1313, allocations: 34.56 kB / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1313, allocations: 0 / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003213/0.1316, allocations: 73.75 kB / 352.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.595e-05/0.1317, allocations: 63.38 kB / 352.8 MB, free: 1.457 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1318, allocations: 105.8 kB / 352.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.1319, allocations: 25.7 kB / 353 MB, free: 1.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.132, allocations: 84.14 kB / 353.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.132, allocations: 7.984 kB / 353.1 MB, free: 1.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.132, allocations: 17.66 kB / 353.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.1323, allocations: 318.8 kB / 353.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.899e-05/0.1323, allocations: 0 / 353.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.254e-05/0.1323, allocations: 27.42 kB / 353.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.587e-05/0.1324, allocations: 39.38 kB / 353.5 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1324, allocations: 0 / 353.5 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001258/0.1326, allocations: 53.62 kB / 353.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.1326, allocations: 8 kB / 353.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.1326, allocations: 3.938 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1326, allocations: 0 / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.173e-05/0.1327, allocations: 8 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1327, allocations: 3.938 kB / 353.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.115e-05/0.1328, allocations: 7.906 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1328, allocations: 8.125 kB / 353.5 MB, free: 0.6875 MB / 286.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 0.000125/0.1329, allocations: 109.8 kB / 353.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1331, allocations: 61.67 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.1331, allocations: 7.844 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1331, allocations: 0 / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1332, allocations: 0 / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1332, allocations: 4 kB / 353.7 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.1333, allocations: 157.7 kB / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1333, allocations: 0 / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.684e-05/0.1334, allocations: 11.94 kB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.1334, allocations: 0 / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.1335, allocations: 7.938 kB / 353.9 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1335, allocations: 3.938 kB / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1335, allocations: 0 / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.1336, allocations: 85.02 kB / 354 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-05/0.1337, allocations: 81.36 kB / 354.1 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/0.1338, allocations: 7.938 kB / 354.1 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.488e-05/0.1338, allocations: 11.98 kB / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-06/0.1338, allocations: 0 / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.1338, allocations: 0 / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.313e-05/0.1339, allocations: 79.28 kB / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1339, allocations: 0 / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002472/0.1342, allocations: 8 kB / 354.2 MB, free: 15.95 MB / 302.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.0001945/0.1344, allocations: 107.7 kB / 354.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.1346, allocations: 27.92 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1346, allocations: 0 / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.1346, allocations: 0 / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.1349, allocations: 34.7 kB / 354.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.1354, allocations: 113.4 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.1358, allocations: 0.6887 MB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.001e-05/0.1358, allocations: 0 / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.534e-05/0.1359, allocations: 11.44 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1359, allocations: 0 / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Templates: time 0.003051/0.1389, allocations: 313 kB / 355.5 MB, free: 14.61 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/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