Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.9 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 59.28 kB / 306.9 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1339, allocations: 50.54 MB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.003896/0.1378, allocations: 1.617 MB / 359.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1393, allocations: 0.526 MB / 359.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.1394, allocations: 4 kB / 359.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.759e-05/0.1396, allocations: 4 kB / 359.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.1397, allocations: 3.938 kB / 359.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1401, allocations: 55.83 kB / 359.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.1402, allocations: 39.8 kB / 359.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.1403, allocations: 19.95 kB / 359.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.1404, allocations: 19.94 kB / 359.7 MB, free: 12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.1405, allocations: 23.8 kB / 359.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.1405, allocations: 0 / 359.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.113e-05/0.1406, allocations: 8 kB / 359.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.982e-05/0.1407, allocations: 11.97 kB / 359.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.1407, allocations: 23.81 kB / 359.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.1409, allocations: 31.95 kB / 359.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1409, allocations: 0 / 359.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1409, allocations: 0 / 359.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1409, allocations: 0 / 359.8 MB, free: 11.91 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000533/0.1414, allocations: 385.6 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.1415, allocations: 12.03 kB / 360.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.1417, allocations: 12.84 kB / 360.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.1419, allocations: 192.2 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.1419, allocations: 4.375 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-06/0.1419, allocations: 384 / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.1422, allocations: 101.4 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1422, allocations: 0 / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1422, allocations: 0 / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1422, allocations: 0 / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.317e-05/0.1423, allocations: 23.92 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003623/0.1427, allocations: 265.7 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.97e-05/0.1428, allocations: 45.14 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.1429, allocations: 21.78 kB / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.1429, allocations: 0 / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.1429, allocations: 38.55 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1429, allocations: 0 / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000272/0.1432, allocations: 61.62 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/0.1433, allocations: 81.11 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.1435, allocations: 141.2 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1436, allocations: 25.7 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.1436, allocations: 88.39 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.1437, allocations: 7.906 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.1437, allocations: 21.7 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1439, allocations: 310.8 kB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.447e-05/0.1439, allocations: 15.92 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/0.144, allocations: 17.72 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.1441, allocations: 37.7 kB / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1441, allocations: 0 / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001277/0.1443, allocations: 65.41 kB / 361.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1443, allocations: 7.984 kB / 361.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1443, allocations: 0 / 361.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.1443, allocations: 4 kB / 361.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.1444, allocations: 4 kB / 361.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.1444, allocations: 64 / 361.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.12e-05/0.1445, allocations: 11.94 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.1445, allocations: 3.984 kB / 361.8 MB, free: 9.68 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 0.0001052/0.1446, allocations: 125.7 kB / 361.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.699e-05/0.1447, allocations: 41.55 kB / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.1447, allocations: 15.81 kB / 362 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1447, allocations: 4 kB / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1447, allocations: 0 / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1447, allocations: 0 / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.145, allocations: 169.6 kB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.145, allocations: 4 kB / 362.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.829e-05/0.145, allocations: 4 kB / 362.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.145, allocations: 4 kB / 362.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.145, allocations: 4 kB / 362.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1451, allocations: 0 / 362.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1451, allocations: 0 / 362.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.1453, allocations: 168.2 kB / 362.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.521e-05/0.1453, allocations: 89.09 kB / 362.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.1454, allocations: 4 kB / 362.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1455, allocations: 0 / 362.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.1455, allocations: 3.984 kB / 362.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.1456, allocations: 4 kB / 362.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1457, allocations: 103.3 kB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1457, allocations: 0 / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1459, allocations: 8.031 kB / 362.5 MB, free: 8.836 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.0001131/0.146, allocations: 99.23 kB / 362.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.1462, allocations: 19.98 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1462, allocations: 0 / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.238e-05/0.1462, allocations: 15.94 kB / 362.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.1466, allocations: 19.7 kB / 362.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.1471, allocations: 203.1 kB / 362.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.1475, allocations: 0.6926 MB / 363.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.767e-05/0.1475, allocations: 7.438 kB / 363.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1475, allocations: 4 kB / 363.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of Templates: time 0.002956/0.1505, allocations: 0.7117 MB / 364.3 MB, free: 7.012 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches