Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001358/0.001358, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.403/1.403, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 51.55 kB / 300.6 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1295, allocations: 49.44 MB / 350.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003763/0.1333, allocations: 1.538 MB / 351.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.1344, allocations: 480.2 kB / 352.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.1345, allocations: 0 / 352.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.256e-05/0.1346, allocations: 11.92 kB / 352.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.1347, allocations: 3.938 kB / 352.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.1351, allocations: 50.7 kB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.1352, allocations: 35.86 kB / 352.2 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1353, allocations: 11.98 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.678e-05/0.1354, allocations: 31.84 kB / 352.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.465e-05/0.1355, allocations: 15.92 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.1355, allocations: 4 kB / 352.2 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.304e-05/0.1356, allocations: 0 / 352.2 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/0.1356, allocations: 7.938 kB / 352.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.408e-05/0.1357, allocations: 35.8 kB / 352.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.1358, allocations: 39.81 kB / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1358, allocations: 0 / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1358, allocations: 4 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1358, allocations: 0 / 352.3 MB, free: 2.156 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005719/0.1364, allocations: 366.1 kB / 352.7 MB, free: 1.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1365, allocations: 15.97 kB / 352.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.1365, allocations: 8.844 kB / 352.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.1368, allocations: 192 kB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1368, allocations: 8.375 kB / 352.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.1368, allocations: 4.375 kB / 352.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.1371, allocations: 85.42 kB / 353 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1371, allocations: 3.938 kB / 353 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.1371, allocations: 4 kB / 353 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1372, allocations: 0 / 353 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.859e-05/0.1372, allocations: 19.98 kB / 353 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003913/0.1376, allocations: 261.8 kB / 353.3 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.529e-05/0.1377, allocations: 49.16 kB / 353.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.1378, allocations: 21.77 kB / 353.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.1378, allocations: 0 / 353.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1379, allocations: 38.56 kB / 353.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 3.616e-06/0.1379, allocations: 0 / 353.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000263/0.1381, allocations: 69.45 kB / 353.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.1382, allocations: 85.3 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.1383, allocations: 133.8 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1383, allocations: 25.7 kB / 353.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.1384, allocations: 92.12 kB / 353.8 MB, free: 484 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.1384, allocations: 3.906 kB / 353.8 MB, free: 480 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.584e-05/0.1385, allocations: 17.72 kB / 353.8 MB, free: 456 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1386, allocations: 314.8 kB / 354.1 MB, free: 132 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.467e-05/0.1387, allocations: 15.98 kB / 354.1 MB, free: 116 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.621e-05/0.1387, allocations: 17.72 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.637e-05/0.1388, allocations: 29.7 kB / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1388, allocations: 0 / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001468/0.139, allocations: 61.69 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.139, allocations: 8.031 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.139, allocations: 0 / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.139, allocations: 4 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.989e-05/0.1391, allocations: 4 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1391, allocations: 0 / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.767e-05/0.1392, allocations: 3.984 kB / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.1392, allocations: 8 kB / 354.2 MB, free: 15.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.425e-05/0.1393, allocations: 125.7 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.1394, allocations: 41.69 kB / 354.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.1394, allocations: 7.875 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1394, allocations: 4 kB / 354.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1394, allocations: 0 / 354.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1394, allocations: 0 / 354.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.1396, allocations: 169.5 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1396, allocations: 0 / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.34e-05/0.1397, allocations: 4 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.1397, allocations: 7.984 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1397, allocations: 4 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1397, allocations: 4.031 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1397, allocations: 0 / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.1399, allocations: 160.2 kB / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-05/0.14, allocations: 93 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.14, allocations: 0 / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.636e-05/0.1401, allocations: 11.92 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.1401, allocations: 8.016 kB / 354.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.1401, allocations: 0 / 354.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.1402, allocations: 105.9 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1402, allocations: 4 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.1405, allocations: 4 kB / 355 MB, free: 15.11 MB / 302.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 (2): * Single equations (assignments): 2 * 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.0001178/0.1406, allocations: 103.7 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.1407, allocations: 27.98 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1408, allocations: 0 / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.936e-05/0.1408, allocations: 12 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.1412, allocations: 11.95 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.1416, allocations: 171.4 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.1419, allocations: 0.6885 MB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.052e-05/0.1419, allocations: 0 / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.142, allocations: 7.438 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.142, allocations: 0 / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of Templates: time 0.003036/0.145, allocations: 487.2 kB / 356.5 MB, free: 13.56 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches