Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 100.5 kB / 17.85 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 209.7 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.474/1.474, allocations: 227.4 MB / 246.9 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 62.73 kB / 306.9 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1234, allocations: 50.53 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003997/0.1275, allocations: 1.757 MB / 359.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000527/0.128, allocations: 167.4 kB / 359.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1282, allocations: 7.938 kB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.772e-05/0.1283, allocations: 0 / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1285, allocations: 7.922 kB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.1288, allocations: 47.41 kB / 359.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.1289, allocations: 51.91 kB / 359.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1291, allocations: 35.95 kB / 359.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.167e-05/0.1291, allocations: 19.88 kB / 359.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.901e-05/0.1292, allocations: 23.86 kB / 359.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.1293, allocations: 4 kB / 359.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.883e-05/0.1293, allocations: 4 kB / 359.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.1293, allocations: 23.86 kB / 359.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.586e-05/0.1294, allocations: 39.72 kB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.1295, allocations: 35.94 kB / 359.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1295, allocations: 4 kB / 359.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1295, allocations: 0 / 359.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1296, allocations: 0 / 359.7 MB, free: 12.05 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005941/0.1302, allocations: 389.6 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1302, allocations: 12.03 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.333e-05/0.1303, allocations: 8.844 kB / 360.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1305, allocations: 204.1 kB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.1306, allocations: 4.375 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.1306, allocations: 4.375 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.131, allocations: 166.3 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.131, allocations: 4.188 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.131, allocations: 7.938 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.131, allocations: 0 / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.1312, allocations: 35.92 kB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.1317, allocations: 369.8 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.132, allocations: 115.7 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.1321, allocations: 54.69 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.1321, allocations: 8 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.1322, allocations: 34.56 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1322, allocations: 0 / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003757/0.1325, allocations: 125.6 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.1326, allocations: 111.1 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.1328, allocations: 144.6 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1328, allocations: 25.7 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.1329, allocations: 88.14 kB / 361.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/0.1329, allocations: 11.84 kB / 361.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.133, allocations: 25.7 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1331, allocations: 318.8 kB / 361.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.195e-05/0.1331, allocations: 15.98 kB / 361.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.057e-05/0.1332, allocations: 71.66 kB / 362 MB, free: 9.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.1334, allocations: 103.5 kB / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1334, allocations: 0 / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002075/0.1336, allocations: 109.4 kB / 362.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1336, allocations: 8 kB / 362.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1336, allocations: 4 kB / 362.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.1337, allocations: 3.984 kB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.587e-05/0.1338, allocations: 19.98 kB / 362.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1338, allocations: 7.938 kB / 362.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.402e-05/0.1338, allocations: 4.281 kB / 362.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.1338, allocations: 11.94 kB / 362.2 MB, free: 9.148 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001095/0.134, allocations: 137.6 kB / 362.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.1341, allocations: 73.81 kB / 362.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.867e-05/0.1342, allocations: 12.72 kB / 362.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1342, allocations: 4 kB / 362.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1342, allocations: 0 / 362.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.1342, allocations: 0 / 362.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.1345, allocations: 185.6 kB / 362.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.1345, allocations: 0 / 362.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.1346, allocations: 31.92 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1346, allocations: 0 / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1346, allocations: 4 kB / 362.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.1346, allocations: 4 kB / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1346, allocations: 0 / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003965/0.135, allocations: 320.3 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.1351, allocations: 93.28 kB / 363.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1351, allocations: 3.938 kB / 363.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.77e-05/0.1352, allocations: 8 kB / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.1353, allocations: 7.922 kB / 363.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1353, allocations: 4 kB / 363.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.1354, allocations: 103.3 kB / 363.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1354, allocations: 0 / 363.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1357, allocations: 16 kB / 363.2 MB, free: 8.055 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.0002016/0.136, allocations: 103.2 kB / 363.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002372/0.1362, allocations: 67.83 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1362, allocations: 0 / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.407e-05/0.1363, allocations: 8.562 kB / 363.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006353/0.1369, allocations: 48.08 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006239/0.1376, allocations: 255.3 kB / 363.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.138, allocations: 0.7043 MB / 364.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.729e-05/0.138, allocations: 15.38 kB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.138, allocations: 0 / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of Templates: time 0.002982/0.141, allocations: 0.9023 MB / 365.3 MB, free: 5.883 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches