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.001941/0.001941, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002908/0.002907, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.953/2.953, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.002619, allocations: 55.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7351/0.7378, allocations: 50.54 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.00819/0.7461, allocations: 1.688 MB / 411.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.7473, allocations: 167.4 kB / 411.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002374/0.7476, allocations: 3.938 kB / 411.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.748, allocations: 7.875 kB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.7484, allocations: 15.92 kB / 411.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006444/0.749, allocations: 47.83 kB / 411.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.7493, allocations: 47.91 kB / 411.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/0.7496, allocations: 27.98 kB / 411.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/0.7497, allocations: 27.86 kB / 412 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.7499, allocations: 23.86 kB / 412 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.804e-05/0.75, allocations: 4 kB / 412 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.469e-05/0.75, allocations: 8 kB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.7502, allocations: 19.86 kB / 412 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.7503, allocations: 35.73 kB / 412 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.7506, allocations: 63.73 kB / 412.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.7506, allocations: 4 kB / 412.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.092e-06/0.7506, allocations: 0 / 412.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.7507, allocations: 3.938 kB / 412.1 MB, free: 15.37 MB / 334.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.001209/0.7519, allocations: 388.3 kB / 412.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.106e-05/0.752, allocations: 12.03 kB / 412.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.7521, allocations: 12.75 kB / 412.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007245/0.7528, allocations: 199 kB / 412.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.7529, allocations: 8.312 kB / 412.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.7529, allocations: 8.375 kB / 412.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007886/0.7537, allocations: 166.4 kB / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.7538, allocations: 192 / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.7538, allocations: 3.938 kB / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.7538, allocations: 4 kB / 412.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.7541, allocations: 43.89 kB / 412.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.7549, allocations: 361.9 kB / 413.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.7554, allocations: 127.8 kB / 413.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.7556, allocations: 58.61 kB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.719e-05/0.7557, allocations: 4.141 kB / 413.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.7557, allocations: 38.56 kB / 413.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 2.745e-06/0.7557, allocations: 0 / 413.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.000653/0.7564, allocations: 121.5 kB / 413.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.7566, allocations: 106.8 kB / 413.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.7568, allocations: 133.8 kB / 413.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.7569, allocations: 33.7 kB / 413.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.757, allocations: 95.97 kB / 414 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.962e-05/0.757, allocations: 4 kB / 414 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.7572, allocations: 29.88 kB / 414 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003607/0.7575, allocations: 322.8 kB / 414.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.656e-05/0.7577, allocations: 11.98 kB / 414.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.7578, allocations: 71.66 kB / 414.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.7582, allocations: 95.59 kB / 414.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.717e-06/0.7582, allocations: 0 / 414.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003868/0.7586, allocations: 113.5 kB / 414.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.7586, allocations: 11.92 kB / 414.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.7587, allocations: 8.219 kB / 414.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/0.7587, allocations: 8 kB / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.7588, allocations: 20 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.7589, allocations: 4 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.759, allocations: 7.984 kB / 414.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.759, allocations: 4 kB / 414.7 MB, free: 12.45 MB / 334.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.0003845/0.7594, allocations: 133.7 kB / 414.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.7597, allocations: 73.59 kB / 414.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.499e-05/0.7598, allocations: 16.7 kB / 414.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.7598, allocations: 4 kB / 414.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.7598, allocations: 0 / 414.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.7599, allocations: 4 kB / 414.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006547/0.7605, allocations: 193.4 kB / 415.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.7606, allocations: 0 / 415.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.7607, allocations: 23.92 kB / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.657e-06/0.7607, allocations: 0 / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.7608, allocations: 4 kB / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.7608, allocations: 0 / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.7608, allocations: 0 / 415.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.7616, allocations: 316.2 kB / 415.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.7617, allocations: 96.98 kB / 415.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.7618, allocations: 7.938 kB / 415.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.762, allocations: 0 / 415.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.7621, allocations: 12 kB / 415.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.7621, allocations: 4 kB / 415.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001182/0.7622, allocations: 110.4 kB / 415.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7622, allocations: 0 / 415.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004873/0.7627, allocations: 8 kB / 415.7 MB, free: 11.36 MB / 334.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.0002158/0.7629, allocations: 99.25 kB / 415.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003397/0.7633, allocations: 63.91 kB / 415.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.7633, allocations: 0 / 415.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.427e-05/0.7634, allocations: 11.98 kB / 415.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.7641, allocations: 47.98 kB / 415.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008167/0.765, allocations: 218.2 kB / 416.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.7656, allocations: 0.7118 MB / 416.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.248e-05/0.7656, allocations: 11.44 kB / 416.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.7656, allocations: 0 / 416.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of Templates: time 0.005516/0.7712, allocations: 0.9288 MB / 417.8 MB, free: 9.199 MB / 334.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