Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009195/0.0009195, allocations: 96.17 kB / 16.3 MB, free: 6.461 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.0009274/0.0009277, allocations: 172.9 kB / 17.19 MB, free: 6.348 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.449/1.449, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002924, allocations: 3.688 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1429, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.001841/0.1448, allocations: 1.189 MB / 352.3 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000725/0.1456, allocations: 407.4 kB / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.056e-05/0.1457, allocations: 0 / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.1457, allocations: 0 / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.456e-05/0.1458, allocations: 11.91 kB / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.1461, allocations: 34.53 kB / 352.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.602e-05/0.1462, allocations: 19.97 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.1463, allocations: 20.2 kB / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.939e-05/0.1464, allocations: 7.938 kB / 352.8 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.423e-05/0.1465, allocations: 15.92 kB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.1465, allocations: 4 kB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.134e-05/0.1465, allocations: 3.938 kB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.1465, allocations: 3.984 kB / 352.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.95e-05/0.1466, allocations: 33.7 kB / 352.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.196e-05/0.1467, allocations: 23.95 kB / 352.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1467, allocations: 4 kB / 352.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1467, allocations: 0 / 352.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.1467, allocations: 0 / 352.9 MB, free: 9.965 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.0004633/0.1472, allocations: 339.2 kB / 353.2 MB, free: 9.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1472, allocations: 8.031 kB / 353.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.1473, allocations: 15.8 kB / 353.3 MB, free: 9.562 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.1475, allocations: 175 kB / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1475, allocations: 8 kB / 353.4 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.1475, allocations: 0 / 353.4 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.1479, allocations: 123.2 kB / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1479, allocations: 0 / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-06/0.1479, allocations: 4 kB / 353.6 MB, free: 9.207 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1479, allocations: 0 / 353.6 MB, free: 9.207 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.401e-05/0.148, allocations: 31.88 kB / 353.6 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.1482, allocations: 161.7 kB / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.1484, allocations: 70.56 kB / 353.8 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.1484, allocations: 0 / 353.8 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1484, allocations: 30.56 kB / 353.9 MB, free: 8.852 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1484, allocations: 3.938 kB / 353.9 MB, free: 8.848 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002681/0.1487, allocations: 81.75 kB / 353.9 MB, free: 8.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.1488, allocations: 59.41 kB / 354 MB, free: 8.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.834e-05/0.1489, allocations: 109.8 kB / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.1489, allocations: 29.7 kB / 354.1 MB, free: 8.539 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.12e-05/0.1489, allocations: 88.12 kB / 354.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.494e-06/0.1489, allocations: 4 kB / 354.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-06/0.149, allocations: 0 / 354.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1491, allocations: 310.8 kB / 354.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.1491, allocations: 4 kB / 354.5 MB, free: 8.129 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.667e-05/0.1491, allocations: 35.42 kB / 354.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.028e-05/0.1492, allocations: 7.938 kB / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1492, allocations: 0 / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.979e-05/0.1493, allocations: 61.53 kB / 354.6 MB, free: 8.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1493, allocations: 12.12 kB / 354.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1493, allocations: 0 / 354.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1493, allocations: 0 / 354.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.552e-05/0.1494, allocations: 8 kB / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1494, allocations: 0 / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.252e-05/0.1494, allocations: 0 / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.1494, allocations: 11.89 kB / 354.7 MB, free: 7.977 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.886e-05/0.1495, allocations: 113.8 kB / 354.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.1497, allocations: 69.61 kB / 354.8 MB, free: 7.781 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.1497, allocations: 11.91 kB / 354.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1497, allocations: 0 / 354.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1497, allocations: 0 / 354.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1497, allocations: 0 / 354.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.1498, allocations: 165.5 kB / 355 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1498, allocations: 0 / 355 MB, free: 7.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.24e-05/0.1499, allocations: 11.98 kB / 355 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1499, allocations: 4 kB / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.1499, allocations: 8 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1499, allocations: 384 / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.15, allocations: 3.938 kB / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.1501, allocations: 93.06 kB / 355.1 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.1502, allocations: 85.02 kB / 355.2 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.1502, allocations: 3.938 kB / 355.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.754e-05/0.1502, allocations: 11.98 kB / 355.2 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-06/0.1502, allocations: 0 / 355.2 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.1503, allocations: 0 / 355.2 MB, free: 7.297 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.341e-05/0.1503, allocations: 87.28 kB / 355.3 MB, free: 7.211 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1503, allocations: 0 / 355.3 MB, free: 7.211 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001887/0.1505, allocations: 4 kB / 355.3 MB, free: 7.207 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001239/0.1506, allocations: 103.6 kB / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.1508, allocations: 31.92 kB / 355.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1508, allocations: 0 / 355.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.1508, allocations: 0 / 355.5 MB, free: 7.066 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/0.151, allocations: 31.88 kB / 355.5 MB, free: 7.035 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002911/0.1513, allocations: 148.9 kB / 355.6 MB, free: 6.863 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.1516, allocations: 0.6926 MB / 356.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.438e-05/0.1516, allocations: 4 kB / 356.3 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.198e-05/0.1516, allocations: 7.438 kB / 356.3 MB, free: 6.133 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1516, allocations: 0 / 356.3 MB, free: 6.133 MB / 286.1 MB Notification: Performance of Templates: time 0.00234/0.154, allocations: 312.3 kB / 356.6 MB, free: 5.828 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches