Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009786/0.0009787, allocations: 96.05 kB / 17 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009887/0.0009888, allocations: 197.2 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002671/0.0002672, allocations: 8 kB / 307.1 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.13, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001995/0.1321, allocations: 1.266 MB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000429/0.1325, allocations: 143.7 kB / 360 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.1326, allocations: 3.938 kB / 360 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.959e-05/0.1327, allocations: 3.984 kB / 360 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.1328, allocations: 3.938 kB / 360.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.1331, allocations: 27.97 kB / 360.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.194e-05/0.1332, allocations: 35.86 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1333, allocations: 19.97 kB / 360.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.838e-05/0.1333, allocations: 11.92 kB / 360.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.1334, allocations: 11.92 kB / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.1334, allocations: 0 / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.1334, allocations: 0 / 360.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.765e-05/0.1335, allocations: 11.94 kB / 360.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.1335, allocations: 33.7 kB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.738e-05/0.1336, allocations: 27.94 kB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1336, allocations: 4 kB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1336, allocations: 0 / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1337, allocations: 3.938 kB / 360.2 MB, free: 11.84 MB / 302.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.0004289/0.1341, allocations: 363.4 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1341, allocations: 8.031 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.1342, allocations: 7.906 kB / 360.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.1344, allocations: 186.8 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.1344, allocations: 8 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1344, allocations: 4 kB / 360.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.1347, allocations: 117 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1347, allocations: 0 / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.1348, allocations: 0 / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.1348, allocations: 4 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.775e-05/0.1349, allocations: 31.92 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.1352, allocations: 261.7 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.1355, allocations: 142.2 kB / 361.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.605e-05/0.1356, allocations: 33.75 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1356, allocations: 4 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.1356, allocations: 34.56 kB / 361.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.1356, allocations: 0 / 361.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002872/0.1359, allocations: 85.59 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.136, allocations: 85.05 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.1362, allocations: 132.4 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1362, allocations: 25.7 kB / 361.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.1362, allocations: 88.05 kB / 361.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.1363, allocations: 8.125 kB / 361.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.1363, allocations: 0 / 361.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1364, allocations: 318.8 kB / 362.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.805e-05/0.1365, allocations: 8 kB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.92e-05/0.1365, allocations: 31.42 kB / 362.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.86e-05/0.1366, allocations: 19.98 kB / 362.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1366, allocations: 0 / 362.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001315/0.1367, allocations: 77.42 kB / 362.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.1367, allocations: 4 kB / 362.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1368, allocations: 4.125 kB / 362.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1368, allocations: 4 kB / 362.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.218e-05/0.1369, allocations: 11.98 kB / 362.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1369, allocations: 0 / 362.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.627e-05/0.1369, allocations: 15.88 kB / 362.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.1369, allocations: 4 kB / 362.3 MB, free: 9.469 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.548e-05/0.137, allocations: 121.8 kB / 362.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.593e-05/0.1371, allocations: 57.44 kB / 362.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.1372, allocations: 12.23 kB / 362.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1372, allocations: 4 kB / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1372, allocations: 0 / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1372, allocations: 0 / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.1374, allocations: 165.7 kB / 362.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1374, allocations: 0 / 362.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.498e-05/0.1374, allocations: 8 kB / 362.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1375, allocations: 7.953 kB / 362.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.1375, allocations: 0 / 362.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1375, allocations: 0 / 362.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1375, allocations: 4 kB / 362.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.1377, allocations: 172.3 kB / 362.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.1377, allocations: 89 kB / 362.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.1378, allocations: 3.953 kB / 363 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.272e-05/0.1378, allocations: 11.98 kB / 363 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.1379, allocations: 4 kB / 363 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.1379, allocations: 4 kB / 363 MB, free: 8.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.218e-05/0.138, allocations: 95.27 kB / 363.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.138, allocations: 0 / 363.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.1382, allocations: 8 kB / 363.1 MB, free: 8.605 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 (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.000139/0.1383, allocations: 95.25 kB / 363.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.1385, allocations: 40.28 kB / 363.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1385, allocations: 0 / 363.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.686e-05/0.1386, allocations: 8 kB / 363.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/0.139, allocations: 20.02 kB / 363.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000412/0.1394, allocations: 178 kB / 363.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.1397, allocations: 0.6887 MB / 364.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.002e-05/0.1398, allocations: 7.984 kB / 364.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.829e-05/0.1398, allocations: 15.44 kB / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1398, allocations: 0 / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of Templates: time 0.002892/0.1427, allocations: 431.7 kB / 364.5 MB, free: 7.07 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches