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.001723/0.001722, allocations: 195.8 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 226.6 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007663/0.0007662, allocations: 100.8 kB / 295.5 MB, free: 6.852 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3006/0.3006, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002789, allocations: 8 kB / 465.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3158, allocations: 62.95 MB / 0.5159 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.002631/0.3185, allocations: 2.81 MB / 0.5186 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3196, allocations: 0.7997 MB / 0.5194 GB, free: 34.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.3198, allocations: 12.22 kB / 0.5194 GB, free: 34.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.32, allocations: 50.25 kB / 0.5195 GB, free: 34.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.3202, allocations: 152.8 kB / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.3205, allocations: 74.98 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00054/0.321, allocations: 0.5555 MB / 0.5202 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.3213, allocations: 140.7 kB / 0.5204 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.3215, allocations: 191.3 kB / 0.5205 GB, free: 33.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.3217, allocations: 204.1 kB / 0.5207 GB, free: 33.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.3218, allocations: 24.44 kB / 0.5208 GB, free: 33.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.3219, allocations: 29.31 kB / 0.5208 GB, free: 33.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.679e-05/0.3219, allocations: 78.02 kB / 0.5209 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.3221, allocations: 259.5 kB / 0.5211 GB, free: 33.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.3224, allocations: 403.1 kB / 0.5215 GB, free: 33.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3224, allocations: 0 / 0.5215 GB, free: 33.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3224, allocations: 3.062 kB / 0.5215 GB, free: 33.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3224, allocations: 0 / 0.5215 GB, free: 33.33 MB / 378.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.0008041/0.3233, allocations: 0.6738 MB / 0.5221 GB, free: 32.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3233, allocations: 8.781 kB / 0.5222 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.3234, allocations: 57.41 kB / 0.5222 GB, free: 32.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.3237, allocations: 322.3 kB / 0.5225 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.3238, allocations: 37.91 kB / 0.5226 GB, free: 32.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.637e-05/0.3239, allocations: 55.36 kB / 0.5226 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.3245, allocations: 435.8 kB / 0.523 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.3245, allocations: 14.09 kB / 0.523 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.3245, allocations: 17.28 kB / 0.5231 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.3246, allocations: 10.38 kB / 0.5231 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004876/0.325, allocations: 309.6 kB / 0.5234 GB, free: 32.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.3265, allocations: 1.161 MB / 0.5245 GB, free: 31.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/0.3271, allocations: 479.2 kB / 0.5249 GB, free: 31.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.3274, allocations: 203.7 kB / 0.5251 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.3274, allocations: 8.625 kB / 0.5252 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3274, allocations: 46.03 kB / 0.5252 GB, free: 31.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=62): time 1.934e-06/0.3274, allocations: 0 / 0.5252 GB, free: 31.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.00245/0.3299, allocations: 2.138 MB / 0.5273 GB, free: 29.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.3299, allocations: 85.98 kB / 0.5274 GB, free: 29.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.3301, allocations: 247.7 kB / 0.5276 GB, free: 29.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3302, allocations: 36.17 kB / 0.5276 GB, free: 29.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.3303, allocations: 208.8 kB / 0.5278 GB, free: 29.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.3304, allocations: 269.5 kB / 0.5281 GB, free: 28.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.3304, allocations: 22.5 kB / 0.5281 GB, free: 28.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.81e-05/0.3305, allocations: 358.7 kB / 0.5285 GB, free: 28.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.3307, allocations: 153.4 kB / 0.5286 GB, free: 28.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.331, allocations: 276.1 kB / 0.5289 GB, free: 28.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005322/0.3316, allocations: 470.5 kB / 0.5293 GB, free: 28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3316, allocations: 3.938 kB / 0.5293 GB, free: 28 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0006654/0.3322, allocations: 0.5551 MB / 0.5299 GB, free: 27.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3323, allocations: 5.938 kB / 0.5299 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3323, allocations: 10.73 kB / 0.5299 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3323, allocations: 5.781 kB / 0.5299 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005266/0.3328, allocations: 176.1 kB / 0.53 GB, free: 27.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3329, allocations: 15.45 kB / 0.5301 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.3331, allocations: 24.69 kB / 0.5301 GB, free: 27.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.3331, allocations: 25.91 kB / 0.5301 GB, free: 27.71 MB / 378.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.0001547/0.3333, allocations: 184.9 kB / 0.5303 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/0.3334, allocations: 45.94 kB / 0.5303 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.581e-05/0.3335, allocations: 56.61 kB / 0.5304 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3335, allocations: 8.5 kB / 0.5304 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.3335, allocations: 0 / 0.5304 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.3335, allocations: 7.359 kB / 0.5304 GB, free: 27.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.3351, allocations: 1.451 MB / 0.5318 GB, free: 26.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3351, allocations: 2.656 kB / 0.5318 GB, free: 26.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.3356, allocations: 158.1 kB / 0.532 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.3356, allocations: 6.375 kB / 0.532 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.3357, allocations: 25.09 kB / 0.532 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.3357, allocations: 9.812 kB / 0.532 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3357, allocations: 9.969 kB / 0.532 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008462/0.3365, allocations: 0.903 MB / 0.5329 GB, free: 25.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.3366, allocations: 110.8 kB / 0.533 GB, free: 25.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.3367, allocations: 29.03 kB / 0.533 GB, free: 25.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.337, allocations: 16.53 kB / 0.5331 GB, free: 25.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.3371, allocations: 47.58 kB / 0.5331 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.3371, allocations: 20.31 kB / 0.5331 GB, free: 25.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001856/0.3373, allocations: 178 kB / 0.5333 GB, free: 25.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3374, allocations: 6.375 kB / 0.5333 GB, free: 25.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005531/0.3379, allocations: 142.7 kB / 0.5334 GB, free: 25.65 MB / 378.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.0001341/0.3381, allocations: 122.5 kB / 0.5335 GB, free: 25.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.3386, allocations: 447.1 kB / 0.534 GB, free: 25.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3386, allocations: 0.5625 kB / 0.534 GB, free: 25.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.3389, allocations: 240.2 kB / 0.5342 GB, free: 25.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.3397, allocations: 117 kB / 0.5343 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.3418, allocations: 2.065 MB / 0.5363 GB, free: 23.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.342, allocations: 0.8463 MB / 0.5372 GB, free: 23.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3421, allocations: 50.5 kB / 0.5372 GB, free: 23.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3421, allocations: 0 / 0.5372 GB, free: 23.06 MB / 378.7 MB Notification: Performance of Templates: time 0.009209/0.3514, allocations: 5.868 MB / 0.5429 GB, free: 22.49 MB / 378.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