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.0008978/0.0008978, allocations: 91.17 kB / 17.31 MB, free: 6.535 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.0009813/0.0009813, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.271/1.271, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 7.938 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07315/0.07339, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001471/0.07487, allocations: 1.257 MB / 353.7 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002966/0.07518, allocations: 147.5 kB / 353.9 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.007e-05/0.07526, allocations: 3.938 kB / 353.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.716e-05/0.07529, allocations: 3.938 kB / 353.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.613e-05/0.07539, allocations: 4 kB / 353.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.0756, allocations: 39.14 kB / 353.9 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.433e-05/0.07569, allocations: 39.86 kB / 354 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.972e-05/0.07577, allocations: 11.98 kB / 354 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.755e-05/0.07581, allocations: 11.92 kB / 354 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.549e-05/0.07585, allocations: 11.94 kB / 354 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.07587, allocations: 0 / 354 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.035e-05/0.07588, allocations: 4 kB / 354 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.268e-05/0.07593, allocations: 11.92 kB / 354 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.69e-05/0.07598, allocations: 41.58 kB / 354.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.197e-05/0.07605, allocations: 35.86 kB / 354.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.07606, allocations: 7.938 kB / 354.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.61e-07/0.07607, allocations: 0 / 354.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.07607, allocations: 0 / 354.1 MB, free: 2.062 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.000346/0.07642, allocations: 355.6 kB / 354.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.07646, allocations: 12.03 kB / 354.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.0765, allocations: 12.84 kB / 354.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.07665, allocations: 184.1 kB / 354.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.07667, allocations: 4.375 kB / 354.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.07669, allocations: 12.38 kB / 354.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.07694, allocations: 117.5 kB / 354.8 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.07696, allocations: 192 / 354.8 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.07697, allocations: 3.938 kB / 354.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.07698, allocations: 4 kB / 354.8 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.886e-05/0.07707, allocations: 23.98 kB / 354.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.07733, allocations: 253.8 kB / 355.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.07752, allocations: 146.2 kB / 355.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.464e-05/0.07759, allocations: 29.77 kB / 355.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.07762, allocations: 4 kB / 355.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.07765, allocations: 34.5 kB / 355.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.07765, allocations: 4 kB / 355.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002278/0.07789, allocations: 81.56 kB / 355.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.07794, allocations: 89.05 kB / 355.5 MB, free: 496 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.07805, allocations: 126.1 kB / 355.6 MB, free: 356 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.07807, allocations: 37.58 kB / 355.6 MB, free: 312 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.07811, allocations: 84.27 kB / 355.7 MB, free: 224 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.07813, allocations: 15.84 kB / 355.7 MB, free: 208 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.07816, allocations: 13.7 kB / 355.7 MB, free: 188 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.07826, allocations: 310.8 kB / 356 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.138e-05/0.07831, allocations: 12 kB / 356 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.758e-05/0.07836, allocations: 31.42 kB / 356.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.841e-05/0.07846, allocations: 55.36 kB / 356.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.07847, allocations: 0 / 356.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001342/0.07861, allocations: 77.55 kB / 356.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.07863, allocations: 4 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.07864, allocations: 4 kB / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.896e-06/0.07866, allocations: 0 / 356.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.33e-05/0.07871, allocations: 11.94 kB / 356.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.07873, allocations: 0 / 356.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.548e-05/0.07877, allocations: 7.984 kB / 356.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.07878, allocations: 8.125 kB / 356.2 MB, free: 15.63 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 6.864e-05/0.07885, allocations: 117.8 kB / 356.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.07893, allocations: 53.86 kB / 356.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.07897, allocations: 12.25 kB / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.07898, allocations: 0 / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.07899, allocations: 0 / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.07899, allocations: 3.938 kB / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.07915, allocations: 173.6 kB / 356.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.07916, allocations: 0 / 356.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.762e-05/0.07921, allocations: 15.98 kB / 356.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.07922, allocations: 0 / 356.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.07923, allocations: 0 / 356.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.07924, allocations: 0 / 356.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.07925, allocations: 4 kB / 356.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.07941, allocations: 172.2 kB / 356.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.105e-05/0.07947, allocations: 93 kB / 356.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.07949, allocations: 4 kB / 356.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.441e-05/0.07956, allocations: 0 / 356.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.378e-05/0.07959, allocations: 7.938 kB / 356.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.07961, allocations: 4 kB / 356.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.171e-05/0.07967, allocations: 114.4 kB / 357 MB, free: 14.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07968, allocations: 0 / 357 MB, free: 14.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.07992, allocations: 4 kB / 357 MB, free: 14.76 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 6.213e-05/0.07999, allocations: 103.2 kB / 357.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.08012, allocations: 31.92 kB / 357.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.08013, allocations: 0 / 357.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.791e-05/0.08018, allocations: 19.92 kB / 357.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.08052, allocations: 35.02 kB / 357.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000273/0.0808, allocations: 187.3 kB / 357.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.08102, allocations: 0.6887 MB / 358.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.109e-05/0.08105, allocations: 11.38 kB / 358.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.08106, allocations: 4 kB / 358.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of Templates: time 0.001707/0.08277, allocations: 0.664 MB / 358.7 MB, free: 12.96 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 -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