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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001097/0.001098, allocations: 115.1 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001183, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.4 MB, free: 10.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 78.47 kB / 417 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1189, allocations: 62.44 MB / 479.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.004309/0.1232, allocations: 3.321 MB / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1249, allocations: 0.8257 MB / 483.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.1251, allocations: 11.94 kB / 483.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002285/0.1254, allocations: 51.56 kB / 483.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.1257, allocations: 150.8 kB / 483.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.1259, allocations: 91.91 kB / 483.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004953/0.1264, allocations: 0.5909 MB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.1267, allocations: 181.5 kB / 484.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.1269, allocations: 219.2 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.1272, allocations: 238.9 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.537e-05/0.1272, allocations: 44 kB / 485.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.686e-05/0.1273, allocations: 44 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.1274, allocations: 103.6 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.1276, allocations: 266.7 kB / 485.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005017/0.1281, allocations: 0.545 MB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1282, allocations: 4 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1282, allocations: 0 / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1282, allocations: 0 / 486.1 MB, free: 14.95 MB / 366.1 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.001039/0.1292, allocations: 0.7562 MB / 486.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1293, allocations: 11.97 kB / 486.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.318e-05/0.1294, allocations: 56.38 kB / 487 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.1297, allocations: 310.5 kB / 487.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.1297, allocations: 45.31 kB / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.156e-05/0.1298, allocations: 56.28 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006439/0.1305, allocations: 438.9 kB / 487.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.1305, allocations: 7.906 kB / 487.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.1306, allocations: 20 kB / 487.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1306, allocations: 12 kB / 487.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.131, allocations: 314.3 kB / 488.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.1326, allocations: 1.161 MB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.1333, allocations: 481.2 kB / 489.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.1336, allocations: 207 kB / 490 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.1336, allocations: 12.47 kB / 490 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1337, allocations: 46.92 kB / 490 MB, free: 10.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 1.743e-06/0.1337, allocations: 0 / 490 MB, free: 10.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.003089/0.1368, allocations: 2.128 MB / 492.2 MB, free: 8.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.1369, allocations: 85.67 kB / 492.2 MB, free: 8.441 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.1371, allocations: 262.9 kB / 492.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1371, allocations: 37.7 kB / 492.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1373, allocations: 205 kB / 492.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.1375, allocations: 268.1 kB / 493 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1376, allocations: 122.6 kB / 493.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1378, allocations: 362.7 kB / 493.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.138, allocations: 153.9 kB / 493.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.1383, allocations: 280.8 kB / 493.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/0.1389, allocations: 474.9 kB / 494.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1389, allocations: 0 / 494.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007752/0.1397, allocations: 0.563 MB / 494.9 MB, free: 5.645 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1398, allocations: 8 kB / 494.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1398, allocations: 3.984 kB / 494.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1398, allocations: 8.047 kB / 494.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.1404, allocations: 183.7 kB / 495.1 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1404, allocations: 11.94 kB / 495.1 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.1406, allocations: 32.2 kB / 495.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.1407, allocations: 27.94 kB / 495.2 MB, free: 5.375 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.1409, allocations: 182.1 kB / 495.4 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.79e-05/0.141, allocations: 43.53 kB / 495.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.1411, allocations: 59.64 kB / 495.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1411, allocations: 8 kB / 495.5 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.1411, allocations: 4.062 kB / 495.5 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.1411, allocations: 3.984 kB / 495.5 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.143, allocations: 1.458 MB / 496.9 MB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.143, allocations: 0 / 496.9 MB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.1436, allocations: 155.8 kB / 497.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.1436, allocations: 4 kB / 497.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.1437, allocations: 27.86 kB / 497.1 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/0.1437, allocations: 8 kB / 497.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1437, allocations: 7.938 kB / 497.1 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.1447, allocations: 0.9039 MB / 498 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.1448, allocations: 120.5 kB / 498.2 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.1449, allocations: 19.94 kB / 498.2 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1452, allocations: 16 kB / 498.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.1453, allocations: 56.31 kB / 498.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.769e-05/0.1453, allocations: 20 kB / 498.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.1455, allocations: 185.9 kB / 498.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1455, allocations: 0 / 498.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005335/0.146, allocations: 144 kB / 498.6 MB, free: 1.777 MB / 366.1 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 (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.000171/0.1462, allocations: 123 kB / 498.7 MB, free: 1.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008706/0.1471, allocations: 487.6 kB / 499.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1471, allocations: 0 / 499.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.1474, allocations: 238.2 kB / 499.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000866/0.1482, allocations: 132.6 kB / 499.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.1509, allocations: 1.871 MB / 0.4897 GB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.1513, allocations: 0.8524 MB / 0.4905 GB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.1515, allocations: 60.64 kB / 0.4906 GB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.809e-05/0.1516, allocations: 43.44 kB / 0.4906 GB, free: 13.91 MB / 382.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1516, allocations: 0 / 0.4906 GB, free: 13.91 MB / 382.1 MB Notification: Performance of Templates: time 0.01035/0.162, allocations: 5.276 MB / 0.4958 GB, free: 8.691 MB / 382.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches