Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Rotational.InitializationConversion.SpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w|relativeStates.phi_rel|relativeStates.w_rel|springDamper1.phi_rel|springDamper1.w_rel|springDamper2.phi_rel|springDamper2.w_rel|springDamper3.phi_rel|springDamper3.w_rel",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper") translateModel(ModelicaTest.Rotational.InitializationConversion.SpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w|relativeStates.phi_rel|relativeStates.w_rel|springDamper1.phi_rel|springDamper1.w_rel|springDamper2.phi_rel|springDamper2.w_rel|springDamper3.phi_rel|springDamper3.w_rel",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009597/0.0009596, allocations: 201.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007159/0.000716, allocations: 101.8 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1921/0.1921, allocations: 44.84 MB / 392 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002649, allocations: 11.98 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09542, allocations: 62.96 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.1873/0.2828, allocations: 2.79 MB / 0.518 GB, free: 9.793 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.2848, allocations: 0.7977 MB / 0.5188 GB, free: 9.754 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.285, allocations: 12.06 kB / 0.5188 GB, free: 9.75 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.2851, allocations: 48.98 kB / 0.5189 GB, free: 9.73 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.2854, allocations: 154.7 kB / 0.519 GB, free: 9.664 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.2857, allocations: 72.97 kB / 0.5191 GB, free: 9.664 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000559/0.2862, allocations: 0.5545 MB / 0.5196 GB, free: 9.504 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/0.2865, allocations: 129.3 kB / 0.5198 GB, free: 9.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.2867, allocations: 194.5 kB / 0.52 GB, free: 9.438 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.287, allocations: 209.3 kB / 0.5202 GB, free: 9.387 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.2871, allocations: 24.41 kB / 0.5202 GB, free: 9.387 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.737e-05/0.2871, allocations: 24.25 kB / 0.5202 GB, free: 9.387 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.717e-05/0.2872, allocations: 82.17 kB / 0.5203 GB, free: 9.371 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2873, allocations: 118 kB / 0.5204 GB, free: 9.324 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004985/0.2878, allocations: 404.2 kB / 0.5208 GB, free: 9.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2879, allocations: 4.5 kB / 0.5208 GB, free: 9.281 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2879, allocations: 0 / 0.5208 GB, free: 9.281 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2879, allocations: 0.8438 kB / 0.5208 GB, free: 9.281 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.0009128/0.2888, allocations: 0.6795 MB / 0.5214 GB, free: 8.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2888, allocations: 10.44 kB / 0.5215 GB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.675e-05/0.2889, allocations: 54.52 kB / 0.5215 GB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.2893, allocations: 311.9 kB / 0.5218 GB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.2893, allocations: 43.84 kB / 0.5218 GB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-05/0.2894, allocations: 53.94 kB / 0.5219 GB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.2901, allocations: 427.2 kB / 0.5223 GB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.2901, allocations: 12.22 kB / 0.5223 GB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.2902, allocations: 19.66 kB / 0.5223 GB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.2902, allocations: 10.94 kB / 0.5223 GB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.2907, allocations: 312.9 kB / 0.5226 GB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.2924, allocations: 1.155 MB / 0.5238 GB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006924/0.2931, allocations: 482.1 kB / 0.5242 GB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.2934, allocations: 216.8 kB / 0.5244 GB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.2934, allocations: 6.406 kB / 0.5244 GB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.2934, allocations: 45.08 kB / 0.5245 GB, free: 7.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=62): time 1.663e-06/0.2935, allocations: 0 / 0.5245 GB, free: 7.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.002543/0.296, allocations: 2.128 MB / 0.5266 GB, free: 6.066 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.296, allocations: 85.81 kB / 0.5266 GB, free: 5.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.2963, allocations: 255.6 kB / 0.5269 GB, free: 5.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.2963, allocations: 35.08 kB / 0.5269 GB, free: 5.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.589e-05/0.2964, allocations: 212 kB / 0.5271 GB, free: 5.602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.2966, allocations: 272.8 kB / 0.5274 GB, free: 5.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.917e-05/0.2966, allocations: 15.59 kB / 0.5274 GB, free: 5.379 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.585e-05/0.2967, allocations: 360.1 kB / 0.5277 GB, free: 5.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.2969, allocations: 152.7 kB / 0.5279 GB, free: 4.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.2972, allocations: 272.7 kB / 0.5281 GB, free: 4.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.2975, allocations: 204.3 kB / 0.5283 GB, free: 4.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2975, allocations: 1.062 kB / 0.5283 GB, free: 4.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.000764/0.2983, allocations: 0.5612 MB / 0.5289 GB, free: 4.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.2983, allocations: 5.906 kB / 0.5289 GB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2983, allocations: 2.531 kB / 0.5289 GB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.2983, allocations: 7.062 kB / 0.5289 GB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005666/0.2989, allocations: 182.2 kB / 0.5291 GB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.2989, allocations: 11.09 kB / 0.5291 GB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.2992, allocations: 23.91 kB / 0.5291 GB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/0.2992, allocations: 24.28 kB / 0.5291 GB, free: 4.441 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (97): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.2994, allocations: 185.9 kB / 0.5293 GB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.016e-05/0.2994, allocations: 44.86 kB / 0.5294 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.723e-05/0.2995, allocations: 54.03 kB / 0.5294 GB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.2996, allocations: 13.14 kB / 0.5294 GB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.2996, allocations: 0 / 0.5294 GB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.2996, allocations: 5.203 kB / 0.5294 GB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.3012, allocations: 1.457 MB / 0.5308 GB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3012, allocations: 2.062 kB / 0.5309 GB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006254/0.3019, allocations: 162.1 kB / 0.531 GB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.3019, allocations: 6.969 kB / 0.531 GB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.3019, allocations: 16.16 kB / 0.531 GB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/0.3019, allocations: 6.328 kB / 0.531 GB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.3019, allocations: 9.438 kB / 0.531 GB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009078/0.3028, allocations: 0.922 MB / 0.5319 GB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.357e-05/0.3029, allocations: 113.9 kB / 0.5321 GB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.303, allocations: 19.27 kB / 0.5321 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/0.3032, allocations: 16.25 kB / 0.5321 GB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.3033, allocations: 54.39 kB / 0.5321 GB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.3033, allocations: 24.81 kB / 0.5322 GB, free: 2.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001321/0.3035, allocations: 174 kB / 0.5323 GB, free: 2.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3035, allocations: 0 / 0.5323 GB, free: 2.414 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004591/0.304, allocations: 147.8 kB / 0.5325 GB, free: 2.391 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel) * 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 (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001093/0.3041, allocations: 124.4 kB / 0.5326 GB, free: 2.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006245/0.3047, allocations: 450.1 kB / 0.533 GB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3047, allocations: 0 / 0.533 GB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.305, allocations: 236.7 kB / 0.5332 GB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008059/0.3058, allocations: 117.7 kB / 0.5334 GB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.3081, allocations: 2.06 MB / 0.5354 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.3085, allocations: 0.8441 MB / 0.5362 GB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.3087, allocations: 45.88 kB / 0.5362 GB, free: 15.8 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3087, allocations: 0 / 0.5362 GB, free: 15.8 MB / 362.7 MB Notification: Performance of Templates: time 0.009049/0.3177, allocations: 5.859 MB / 0.542 GB, free: 14.1 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches