Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001737/0.001737, allocations: 191 kB / 18.63 MB, free: 4.379 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.428/1.428, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 47.39 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1226, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.0032/0.1259, allocations: 1.526 MB / 353 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004462/0.1263, allocations: 149 kB / 353.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.439e-05/0.1265, allocations: 0 / 353.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.914e-05/0.1265, allocations: 3.938 kB / 353.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.1267, allocations: 15.92 kB / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.127, allocations: 34.41 kB / 353.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.1271, allocations: 35.86 kB / 353.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1272, allocations: 15.97 kB / 353.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.029e-05/0.1272, allocations: 11.94 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.895e-05/0.1273, allocations: 15.91 kB / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.1273, allocations: 7.938 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.352e-05/0.1273, allocations: 7.938 kB / 353.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.1274, allocations: 15.98 kB / 353.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.1275, allocations: 23.81 kB / 353.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.1276, allocations: 47.81 kB / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1276, allocations: 3.938 kB / 353.4 MB, free: 1.773 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1276, allocations: 0 / 353.4 MB, free: 1.773 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1276, allocations: 0 / 353.4 MB, free: 1.773 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005005/0.1281, allocations: 363.2 kB / 353.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.1282, allocations: 15.95 kB / 353.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.59e-05/0.1282, allocations: 8.844 kB / 353.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1285, allocations: 196.2 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.1285, allocations: 4.312 kB / 354 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.1285, allocations: 4.375 kB / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002966/0.1288, allocations: 117.5 kB / 354.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1288, allocations: 192 / 354.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.1288, allocations: 3.938 kB / 354.1 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1289, allocations: 0 / 354.1 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.436e-05/0.1289, allocations: 19.98 kB / 354.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003656/0.1293, allocations: 261.8 kB / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.1295, allocations: 138.2 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.614e-05/0.1296, allocations: 37.7 kB / 354.6 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1296, allocations: 0 / 354.6 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.1296, allocations: 30.56 kB / 354.6 MB, free: 396 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.1296, allocations: 0 / 354.6 MB, free: 396 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002506/0.1299, allocations: 85.5 kB / 354.7 MB, free: 304 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.13, allocations: 81.11 kB / 354.8 MB, free: 204 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1301, allocations: 133.3 kB / 354.9 MB, free: 60 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.1301, allocations: 25.7 kB / 354.9 MB, free: 28 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.984e-05/0.1302, allocations: 88.14 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.1302, allocations: 3.938 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.1303, allocations: 29.73 kB / 355 MB, free: 15.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1304, allocations: 310.8 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.285e-05/0.1304, allocations: 15.98 kB / 355.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.806e-05/0.1305, allocations: 23.44 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.904e-05/0.1305, allocations: 51.36 kB / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1306, allocations: 0 / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001176/0.1307, allocations: 73.48 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1307, allocations: 8 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1307, allocations: 0 / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1307, allocations: 128 / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.7e-05/0.1308, allocations: 19.88 kB / 355.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.1308, allocations: 0 / 355.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.554e-05/0.1309, allocations: 7.984 kB / 355.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1309, allocations: 0 / 355.5 MB, free: 15.36 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 8.497e-05/0.131, allocations: 121.8 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/0.131, allocations: 57.8 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.1311, allocations: 8.25 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1311, allocations: 4 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1311, allocations: 4 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1311, allocations: 0 / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.1313, allocations: 169.6 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1313, allocations: 0 / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.587e-05/0.1313, allocations: 11.98 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1313, allocations: 0 / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1314, allocations: 4 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1314, allocations: 0 / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1314, allocations: 0 / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.1316, allocations: 176.2 kB / 356.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.1316, allocations: 97 kB / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.1316, allocations: 0 / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.72e-05/0.1317, allocations: 4 kB / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.1317, allocations: 0 / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.1317, allocations: 0 / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.1318, allocations: 107.2 kB / 356.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1318, allocations: 0 / 356.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.132, allocations: 8 kB / 356.3 MB, free: 14.49 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 (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.0001003/0.1321, allocations: 99.72 kB / 356.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000136/0.1323, allocations: 31.92 kB / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1323, allocations: 0 / 356.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.526e-05/0.1323, allocations: 11.98 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.1327, allocations: 28.27 kB / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003226/0.133, allocations: 150.3 kB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.1333, allocations: 0.6885 MB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.1333, allocations: 7.984 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.1334, allocations: 7.438 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1334, allocations: 0 / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.002987/0.1364, allocations: 0.4994 MB / 357.8 MB, free: 12.91 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches