Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 198.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.2 MB / 245 MB, free: 5.832 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 105.4 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3116/0.3116, allocations: 45.23 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.000229, allocations: 7.984 kB / 468.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3103, allocations: 63.25 MB / 0.5192 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.4222, allocations: 89.44 MB / 0.6065 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4225, allocations: 67.97 kB / 0.6066 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02377/0.4463, allocations: 8.847 MB / 0.6152 GB, free: 5.043 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4463, allocations: 0 / 0.6152 GB, free: 5.043 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.107e-05/0.4464, allocations: 16 kB / 0.6153 GB, free: 5.027 MB / 426.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.001208/0.4476, allocations: 0.6624 MB / 0.6159 GB, free: 4.312 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.4476, allocations: 12.03 kB / 0.6159 GB, free: 4.301 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.4478, allocations: 55.33 kB / 0.616 GB, free: 4.246 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.4482, allocations: 293.3 kB / 0.6162 GB, free: 3.922 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.4482, allocations: 37 kB / 0.6163 GB, free: 3.887 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.41e-05/0.4483, allocations: 51.91 kB / 0.6163 GB, free: 3.836 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006922/0.449, allocations: 434.8 kB / 0.6167 GB, free: 3.398 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.4491, allocations: 11.91 kB / 0.6168 GB, free: 3.387 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.4491, allocations: 19.95 kB / 0.6168 GB, free: 3.367 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.4491, allocations: 12 kB / 0.6168 GB, free: 3.355 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.4496, allocations: 312.5 kB / 0.6171 GB, free: 3.047 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.4514, allocations: 1.165 MB / 0.6182 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.4521, allocations: 485.1 kB / 0.6187 GB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.4522, allocations: 4.438 kB / 0.6187 GB, free: 1.301 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.4522, allocations: 47.03 kB / 0.6187 GB, free: 1.246 MB / 426.7 MB Notification: Performance of pre-optimization done (n=62): time 1.843e-06/0.4522, allocations: 0 / 0.6187 GB, free: 1.246 MB / 426.7 MB Notification: Performance of matching and sorting (n=74): time 0.002865/0.4551, allocations: 2.136 MB / 0.6208 GB, free: 14.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.4551, allocations: 85.67 kB / 0.6209 GB, free: 14.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.4554, allocations: 226.1 kB / 0.6211 GB, free: 14.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.4554, allocations: 37.7 kB / 0.6212 GB, free: 14.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.4555, allocations: 205 kB / 0.6213 GB, free: 14.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.4557, allocations: 276 kB / 0.6216 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.4557, allocations: 16 kB / 0.6216 GB, free: 14.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4559, allocations: 354.8 kB / 0.622 GB, free: 13.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.4561, allocations: 157.9 kB / 0.6221 GB, free: 13.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.4564, allocations: 264.9 kB / 0.6224 GB, free: 13.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.4567, allocations: 199.4 kB / 0.6226 GB, free: 13.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4567, allocations: 4 kB / 0.6226 GB, free: 13.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007396/0.4575, allocations: 0.5629 MB / 0.6231 GB, free: 12.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.4575, allocations: 10.81 kB / 0.6231 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4575, allocations: 0 / 0.6231 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.4576, allocations: 11.95 kB / 0.6231 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005638/0.4581, allocations: 179.8 kB / 0.6233 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.949e-05/0.4581, allocations: 11.94 kB / 0.6233 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002432/0.4584, allocations: 28.27 kB / 0.6233 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.4584, allocations: 24.06 kB / 0.6234 GB, free: 12.25 MB / 442.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.0001865/0.4586, allocations: 181.7 kB / 0.6235 GB, free: 12.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.4587, allocations: 47.44 kB / 0.6236 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.4588, allocations: 55.64 kB / 0.6236 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4589, allocations: 8 kB / 0.6236 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.4589, allocations: 7.891 kB / 0.6237 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4589, allocations: 3.984 kB / 0.6237 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.4607, allocations: 1.446 MB / 0.6251 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.4607, allocations: 4 kB / 0.6251 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006025/0.4613, allocations: 159.8 kB / 0.6252 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.406e-05/0.4614, allocations: 8 kB / 0.6252 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.4614, allocations: 19.95 kB / 0.6253 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.4614, allocations: 4 kB / 0.6253 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4614, allocations: 7.938 kB / 0.6253 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.4626, allocations: 1.041 MB / 0.6263 GB, free: 9.016 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.368e-05/0.4627, allocations: 116.5 kB / 0.6264 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.78e-05/0.4627, allocations: 27.89 kB / 0.6264 GB, free: 8.855 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.463, allocations: 16 kB / 0.6264 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.4631, allocations: 52.38 kB / 0.6265 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.4631, allocations: 20 kB / 0.6265 GB, free: 8.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001645/0.4633, allocations: 178 kB / 0.6267 GB, free: 8.598 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4633, allocations: 0 / 0.6267 GB, free: 8.598 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004954/0.4638, allocations: 144.1 kB / 0.6268 GB, free: 8.457 MB / 442.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.0001628/0.464, allocations: 132.6 kB / 0.6269 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000692/0.4647, allocations: 455.5 kB / 0.6274 GB, free: 7.867 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4647, allocations: 0 / 0.6274 GB, free: 7.867 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003014/0.465, allocations: 234.2 kB / 0.6276 GB, free: 7.641 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006659/0.4656, allocations: 103.8 kB / 0.6277 GB, free: 7.543 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.4684, allocations: 2.022 MB / 0.6297 GB, free: 5.457 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.4688, allocations: 0.8605 MB / 0.6305 GB, free: 4.566 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000216/0.469, allocations: 56.66 kB / 0.6306 GB, free: 4.512 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/0.4691, allocations: 43.44 kB / 0.6306 GB, free: 4.469 MB / 442.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4691, allocations: 0 / 0.6306 GB, free: 4.469 MB / 442.7 MB Notification: Performance of Templates: time 0.009552/0.4787, allocations: 4.791 MB / 0.6353 GB, free: 15.73 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches