Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.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.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") translateModel(Modelica.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007303/0.0007304, allocations: 92.61 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.0007766/0.0007766, allocations: 175.8 kB / 18.21 MB, free: 5.684 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.243/1.243, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002237/0.0002237, allocations: 4 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07244/0.07267, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.001336/0.07404, allocations: 1.21 MB / 353.7 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006007/0.07465, allocations: 447.7 kB / 354.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.136e-05/0.0747, allocations: 4 kB / 354.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.07472, allocations: 3.938 kB / 354.1 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.902e-05/0.07481, allocations: 15.8 kB / 354.1 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.07495, allocations: 27.97 kB / 354.2 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.487e-05/0.07504, allocations: 63.72 kB / 354.2 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.07509, allocations: 4 kB / 354.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.07521, allocations: 39.84 kB / 354.3 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.638e-05/0.07529, allocations: 27.89 kB / 354.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.07531, allocations: 4 kB / 354.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.07533, allocations: 4 kB / 354.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.07535, allocations: 11.92 kB / 354.3 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.0754, allocations: 45.58 kB / 354.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.23e-05/0.07547, allocations: 35.92 kB / 354.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.07548, allocations: 0 / 354.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07548, allocations: 0 / 354.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.745e-06/0.07549, allocations: 0 / 354.4 MB, free: 1.742 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005597/0.07605, allocations: 399.5 kB / 354.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.07609, allocations: 8.031 kB / 354.8 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.07613, allocations: 8.844 kB / 354.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.07624, allocations: 179.6 kB / 355 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.07625, allocations: 4.375 kB / 355 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.07627, allocations: 4.125 kB / 355 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.07652, allocations: 96.22 kB / 355.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.07654, allocations: 0 / 355.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.07656, allocations: 0 / 355.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.07657, allocations: 7.938 kB / 355.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000293/0.07687, allocations: 79.88 kB / 355.2 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.07704, allocations: 183.5 kB / 355.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000282/0.07733, allocations: 119.7 kB / 355.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.0775, allocations: 62.55 kB / 355.5 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.07753, allocations: 0 / 355.5 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.07755, allocations: 42.5 kB / 355.6 MB, free: 384 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.07756, allocations: 4 kB / 355.6 MB, free: 380 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005574/0.07812, allocations: 161.7 kB / 355.7 MB, free: 212 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.07818, allocations: 106.8 kB / 355.8 MB, free: 80 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.07828, allocations: 126.1 kB / 356 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.0783, allocations: 25.7 kB / 356 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.07835, allocations: 92.23 kB / 356.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.07838, allocations: 19.75 kB / 356.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.07841, allocations: 13.7 kB / 356.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.07851, allocations: 314.8 kB / 356.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.07866, allocations: 39.91 kB / 356.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.07882, allocations: 62.53 kB / 356.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.07913, allocations: 98.52 kB / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.07914, allocations: 3.938 kB / 356.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003495/0.07949, allocations: 129.4 kB / 356.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.07952, allocations: 11.98 kB / 356.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.07953, allocations: 4.094 kB / 356.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.07955, allocations: 3.938 kB / 356.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.0797, allocations: 23.98 kB / 356.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.07971, allocations: 4 kB / 356.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.07982, allocations: 11.98 kB / 356.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.07983, allocations: 4 kB / 356.8 MB, free: 15.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.983e-05/0.07991, allocations: 121.8 kB / 356.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.07994, allocations: 11.84 kB / 356.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.536e-05/0.07997, allocations: 7.875 kB / 356.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.07998, allocations: 0 / 356.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.07999, allocations: 4 kB / 357 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.07999, allocations: 0 / 357 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.08012, allocations: 181.6 kB / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.08012, allocations: 0 / 357.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.08026, allocations: 31.91 kB / 357.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.08027, allocations: 0 / 357.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.08028, allocations: 0 / 357.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.08029, allocations: 7.938 kB / 357.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.0803, allocations: 0 / 357.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/0.08067, allocations: 166.6 kB / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.08071, allocations: 81.02 kB / 357.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.08073, allocations: 4 kB / 357.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.08085, allocations: 19.98 kB / 357.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.08089, allocations: 3.984 kB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.08091, allocations: 4 kB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.031e-05/0.08096, allocations: 99.27 kB / 357.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.118e-06/0.08097, allocations: 0 / 357.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002046/0.08118, allocations: 11.94 kB / 357.5 MB, free: 14.2 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 (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 7.029e-05/0.08126, allocations: 99.19 kB / 357.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.08161, allocations: 92.05 kB / 357.7 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08162, allocations: 0 / 357.7 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.08179, allocations: 47.91 kB / 357.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.08197, allocations: 11.94 kB / 357.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004651/0.08244, allocations: 246.1 kB / 358 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.08264, allocations: 0.6888 MB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.638e-05/0.08269, allocations: 11.42 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.0827, allocations: 3.938 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Templates: time 0.001923/0.08463, allocations: 0.863 MB / 359.6 MB, free: 12.07 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches