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.0008592/0.0008592, allocations: 92.25 kB / 16.65 MB, free: 6.59 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.0009239/0.000924, allocations: 182.2 kB / 17.56 MB, free: 6.203 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.513/1.513, allocations: 223.3 MB / 241.6 MB, free: 244 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003114, allocations: 11.94 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1378, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002246/0.1402, allocations: 1.209 MB / 353 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009592/0.1412, allocations: 431.7 kB / 353.5 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1413, allocations: 0 / 353.5 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.1413, allocations: 0 / 353.5 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.1415, allocations: 3.938 kB / 353.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.1419, allocations: 39.09 kB / 353.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.1421, allocations: 35.86 kB / 353.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.1422, allocations: 15.97 kB / 353.6 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.1424, allocations: 15.88 kB / 353.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.1425, allocations: 19.92 kB / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.1425, allocations: 0 / 353.6 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.1426, allocations: 4 kB / 353.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.1426, allocations: 0 / 353.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.407e-05/0.1427, allocations: 41.58 kB / 353.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.1428, allocations: 35.86 kB / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1428, allocations: 0 / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.1429, allocations: 0 / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1429, allocations: 0 / 353.7 MB, free: 1.844 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.0007288/0.1436, allocations: 351.6 kB / 354 MB, free: 1.453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.621e-05/0.1437, allocations: 8.031 kB / 354 MB, free: 1.445 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.1437, allocations: 8.875 kB / 354 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.144, allocations: 176.2 kB / 354.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.144, allocations: 384 / 354.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.1441, allocations: 8.375 kB / 354.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.1446, allocations: 135.5 kB / 354.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1446, allocations: 0 / 354.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.1446, allocations: 0 / 354.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1446, allocations: 0 / 354.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001025/0.1447, allocations: 23.98 kB / 354.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001793/0.1449, allocations: 161.7 kB / 354.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.1451, allocations: 66.52 kB / 354.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.1452, allocations: 28.89 kB / 354.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.1452, allocations: 0 / 354.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.1453, allocations: 38.5 kB / 354.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1453, allocations: 0 / 354.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002696/0.1456, allocations: 85.7 kB / 354.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.1456, allocations: 59.39 kB / 354.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.1459, allocations: 113.8 kB / 354.9 MB, free: 420 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.1459, allocations: 29.7 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.146, allocations: 84.14 kB / 355 MB, free: 296 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.146, allocations: 0 / 355 MB, free: 296 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.146, allocations: 13.72 kB / 355 MB, free: 276 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1462, allocations: 318.8 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/0.1462, allocations: 4 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.341e-05/0.1462, allocations: 31.42 kB / 355.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.266e-05/0.1463, allocations: 39.38 kB / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1463, allocations: 0 / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.225e-05/0.1464, allocations: 53.62 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1465, allocations: 11.94 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1465, allocations: 4.125 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1465, allocations: 0 / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.164e-05/0.1466, allocations: 8 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1466, allocations: 7.922 kB / 355.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.428e-05/0.1466, allocations: 4 kB / 355.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.1466, allocations: 0 / 355.5 MB, free: 15.76 MB / 302.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.76e-05/0.1467, allocations: 117.8 kB / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1469, allocations: 69.53 kB / 355.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.22e-05/0.1469, allocations: 11.89 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1469, allocations: 0 / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.147, allocations: 4 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.147, allocations: 0 / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.1471, allocations: 161.7 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1471, allocations: 0 / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.002e-05/0.1472, allocations: 11.94 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1472, allocations: 3.938 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.1472, allocations: 0 / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1472, allocations: 4 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1472, allocations: 384 / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001708/0.1474, allocations: 97.02 kB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.869e-05/0.1475, allocations: 85.03 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.1475, allocations: 0 / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.492e-05/0.1475, allocations: 7.938 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-06/0.1476, allocations: 4 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1476, allocations: 0 / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.067e-05/0.1476, allocations: 91.27 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1476, allocations: 0 / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.1478, allocations: 4 kB / 356.2 MB, free: 14.99 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.0001794/0.148, allocations: 107.1 kB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.1482, allocations: 28.17 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.1482, allocations: 4.062 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.72e-07/0.1482, allocations: 0 / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.1485, allocations: 28.98 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003651/0.1489, allocations: 152.5 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.1492, allocations: 0.6848 MB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.747e-05/0.1493, allocations: 3.906 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.1493, allocations: 11.44 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1493, allocations: 0 / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Templates: time 0.003357/0.1527, allocations: 321.2 kB / 357.5 MB, free: 13.6 MB / 302.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches