Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.001555/0.001556, allocations: 185 kB / 18.72 MB, free: 4.332 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.312/1.312, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2033/0.2033, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3672, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001455/0.3687, allocations: 0.4896 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3699, allocations: 0.7769 MB / 0.5201 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.792e-05/0.3699, allocations: 0 / 0.5201 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.067e-06/0.3699, allocations: 0 / 0.5201 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-06/0.3699, allocations: 1 kB / 0.5201 GB, free: 2.793 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.3713, allocations: 0.5771 MB / 0.5207 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.721e-05/0.3714, allocations: 6.766 kB / 0.5207 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.275e-05/0.3714, allocations: 1.922 kB / 0.5207 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.325e-05/0.3715, allocations: 3.984 kB / 0.5207 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.546e-05/0.3715, allocations: 4.844 kB / 0.5207 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.539e-06/0.3715, allocations: 0 / 0.5207 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006435/0.3721, allocations: 377.2 kB / 0.5211 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.211e-06/0.3721, allocations: 0 / 0.5211 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.69e-05/0.3722, allocations: 1.125 kB / 0.5211 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.3726, allocations: 339.3 kB / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3726, allocations: 0 / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3726, allocations: 0 / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3727, allocations: 0 / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002747/0.3729, allocations: 397.2 kB / 0.5218 GB, free: 1.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.373, allocations: 9.219 kB / 0.5218 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.373, allocations: 2.406 kB / 0.5218 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.557e-05/0.3731, allocations: 161.7 kB / 0.5219 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.3731, allocations: 1.875 kB / 0.5219 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.3731, allocations: 4.375 kB / 0.5219 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.019e-05/0.3732, allocations: 30.53 kB / 0.522 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.3732, allocations: 192 / 0.522 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.3732, allocations: 3.938 kB / 0.522 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3732, allocations: 1.469 kB / 0.522 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.3732, allocations: 0.75 kB / 0.522 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.297e-05/0.3733, allocations: 152.7 kB / 0.5221 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.514e-05/0.3734, allocations: 22.22 kB / 0.5221 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.16e-05/0.3734, allocations: 10.36 kB / 0.5221 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.3734, allocations: 0 / 0.5221 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.3734, allocations: 63.03 kB / 0.5222 GB, free: 1.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 6.72e-07/0.3734, allocations: 0 / 0.5222 GB, free: 1.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.3736, allocations: 67.89 kB / 0.5223 GB, free: 1.234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.3736, allocations: 83.38 kB / 0.5224 GB, free: 1.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.101e-05/0.3736, allocations: 89.86 kB / 0.5224 GB, free: 1.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.3736, allocations: 31.36 kB / 0.5225 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.187e-06/0.3737, allocations: 80.14 kB / 0.5225 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.3737, allocations: 0 / 0.5225 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.3737, allocations: 13.33 kB / 0.5226 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.67e-05/0.3738, allocations: 315.5 kB / 0.5229 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.3738, allocations: 2.031 kB / 0.5229 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-06/0.3738, allocations: 5.281 kB / 0.5229 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.271e-05/0.3738, allocations: 60.39 kB / 0.5229 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3738, allocations: 4 kB / 0.5229 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.029e-05/0.3739, allocations: 64.05 kB / 0.523 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3739, allocations: 34.53 kB / 0.523 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.3739, allocations: 0 / 0.523 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.374, allocations: 5.984 kB / 0.523 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.374, allocations: 0 / 0.523 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.374, allocations: 0 / 0.523 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.316e-05/0.374, allocations: 1 kB / 0.523 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.374, allocations: 1.516 kB / 0.523 GB, free: 420 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 4.598e-05/0.374, allocations: 142.6 kB / 0.5232 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-06/0.3741, allocations: 5.75 kB / 0.5232 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.445e-06/0.3741, allocations: 7.625 kB / 0.5232 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3741, allocations: 5.453 kB / 0.5232 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3741, allocations: 0 / 0.5232 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3741, allocations: 0.7969 kB / 0.5232 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.408e-05/0.3741, allocations: 145 kB / 0.5233 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3741, allocations: 1.562 kB / 0.5233 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3742, allocations: 0 / 0.5233 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3742, allocations: 0.6094 kB / 0.5233 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3742, allocations: 9.875 kB / 0.5233 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3742, allocations: 0 / 0.5233 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3742, allocations: 0.6562 kB / 0.5233 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.789e-05/0.3743, allocations: 91.25 kB / 0.5234 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.3743, allocations: 79.03 kB / 0.5235 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.3743, allocations: 5.578 kB / 0.5235 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.119e-05/0.3744, allocations: 5.5 kB / 0.5235 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.3744, allocations: 4.031 kB / 0.5235 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.3744, allocations: 1 kB / 0.5235 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.141e-05/0.3744, allocations: 81.11 kB / 0.5236 GB, free: 15.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3744, allocations: 0 / 0.5236 GB, free: 15.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3748, allocations: 81.03 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005155/0.3753, allocations: 226 kB / 0.5239 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.482e-05/0.3754, allocations: 58.06 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3754, allocations: 4.062 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.45e-05/0.3755, allocations: 55.33 kB / 0.524 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3756, allocations: 2.281 kB / 0.524 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001795/0.3758, allocations: 81.62 kB / 0.5241 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.376, allocations: 0.6753 MB / 0.5247 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.63e-06/0.3761, allocations: 0 / 0.5247 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.142e-05/0.3761, allocations: 8.844 kB / 0.5247 GB, free: 14.67 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3761, allocations: 0 / 0.5247 GB, free: 14.67 MB / 398.1 MB Notification: Performance of Templates: time 0.005074/0.3812, allocations: 1.835 MB / 0.5265 GB, free: 14.16 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches