Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 110.8 kB / 17.74 MB, free: 5.344 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.001775/0.001775, allocations: 188.5 kB / 18.66 MB, free: 4.422 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.478/1.478, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3534, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002819/0.3562, allocations: 1.547 MB / 403 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003987/0.3567, allocations: 139.4 kB / 403.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.3568, allocations: 4 kB / 403.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.424e-05/0.3568, allocations: 7.922 kB / 403.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.357, allocations: 7.938 kB / 403.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.3572, allocations: 43.89 kB / 403.2 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3573, allocations: 31.86 kB / 403.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.3575, allocations: 12 kB / 403.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.513e-05/0.3575, allocations: 15.92 kB / 403.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.3576, allocations: 11.94 kB / 403.2 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.3576, allocations: 3.984 kB / 403.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.3576, allocations: 4 kB / 403.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.304e-05/0.3577, allocations: 15.92 kB / 403.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.3577, allocations: 23.81 kB / 403.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.3578, allocations: 47.77 kB / 403.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3579, allocations: 3.984 kB / 403.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3579, allocations: 0 / 403.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.3579, allocations: 0 / 403.3 MB, free: 6.957 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004898/0.3584, allocations: 367.1 kB / 403.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3584, allocations: 12.03 kB / 403.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.3585, allocations: 8.781 kB / 403.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.3587, allocations: 197.5 kB / 403.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.3587, allocations: 384 / 403.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.3588, allocations: 8.375 kB / 403.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.3591, allocations: 113.5 kB / 404 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3591, allocations: 8.125 kB / 404 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3591, allocations: 7.938 kB / 404 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3591, allocations: 0 / 404 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.131e-05/0.3592, allocations: 15.98 kB / 404.1 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.3596, allocations: 253.8 kB / 404.3 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.3598, allocations: 146.2 kB / 404.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.692e-05/0.3599, allocations: 25.78 kB / 404.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.3599, allocations: 3.984 kB / 404.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.36, allocations: 38.5 kB / 404.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.333e-06/0.36, allocations: 0 / 404.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002455/0.3602, allocations: 81.66 kB / 404.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/0.3603, allocations: 85.14 kB / 404.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.3604, allocations: 129.8 kB / 404.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.3605, allocations: 25.7 kB / 404.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.949e-05/0.3605, allocations: 88.14 kB / 404.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.3605, allocations: 11.89 kB / 404.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.3606, allocations: 13.72 kB / 404.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3607, allocations: 323 kB / 405.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.24e-05/0.3608, allocations: 7.984 kB / 405.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.717e-05/0.3608, allocations: 35.42 kB / 405.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.106e-05/0.3609, allocations: 51.36 kB / 405.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3609, allocations: 0 / 405.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001346/0.3611, allocations: 65.47 kB / 405.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3611, allocations: 11.94 kB / 405.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3611, allocations: 0 / 405.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3611, allocations: 0 / 405.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.318e-05/0.3612, allocations: 16.11 kB / 405.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.3612, allocations: 4 kB / 405.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.132e-05/0.3612, allocations: 0 / 405.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.3613, allocations: 4 kB / 405.4 MB, free: 4.547 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.474e-05/0.3614, allocations: 121.7 kB / 405.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.662e-05/0.3614, allocations: 57.47 kB / 405.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.3615, allocations: 12.25 kB / 405.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3615, allocations: 3.984 kB / 405.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3615, allocations: 0 / 405.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3615, allocations: 4 kB / 405.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.3617, allocations: 177.5 kB / 405.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3617, allocations: 0 / 405.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.019e-05/0.3618, allocations: 8 kB / 405.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3618, allocations: 4 kB / 405.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3618, allocations: 0 / 405.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3618, allocations: 0 / 405.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3618, allocations: 3.984 kB / 405.8 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.362, allocations: 172.2 kB / 406 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.3621, allocations: 93.03 kB / 406.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.3621, allocations: 0 / 406.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.963e-05/0.3622, allocations: 4 kB / 406.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.142e-05/0.3622, allocations: 3.984 kB / 406.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.3622, allocations: 0 / 406.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.3623, allocations: 103.3 kB / 406.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3623, allocations: 0 / 406.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.3626, allocations: 8 kB / 406.2 MB, free: 3.676 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0001225/0.3627, allocations: 104 kB / 406.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001567/0.3628, allocations: 35.91 kB / 406.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3629, allocations: 0 / 406.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.414e-05/0.3629, allocations: 4 kB / 406.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.3633, allocations: 24.27 kB / 406.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.3636, allocations: 188 kB / 406.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3639, allocations: 0.6922 MB / 407.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.3639, allocations: 11.44 kB / 407.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3639, allocations: 0 / 407.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of Templates: time 0.002111/0.3661, allocations: 0.6836 MB / 407.9 MB, free: 1.867 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches