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.001298/0.001298, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2295/0.2295, allocations: 46.13 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 79.56 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 62.45 MB / 480.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.0042/0.1205, allocations: 3.283 MB / 483.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.122, allocations: 0.8335 MB / 484.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.1222, allocations: 11.94 kB / 484.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.1224, allocations: 75.23 kB / 484.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.1227, allocations: 174.5 kB / 484.4 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.1231, allocations: 107.9 kB / 484.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.1236, allocations: 0.5871 MB / 485.1 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.1239, allocations: 177.5 kB / 485.3 MB, free: 12 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.1242, allocations: 215.4 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.1245, allocations: 242.9 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.1245, allocations: 40 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.509e-05/0.1246, allocations: 44 kB / 485.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.166e-05/0.1247, allocations: 107.6 kB / 485.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1249, allocations: 270.7 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.1255, allocations: 0.537 MB / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1255, allocations: 0 / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1255, allocations: 0 / 486.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1255, allocations: 0 / 486.7 MB, free: 14.57 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.001384/0.1269, allocations: 0.7639 MB / 487.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.127, allocations: 12.03 kB / 487.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.1271, allocations: 48.38 kB / 487.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.1276, allocations: 322.4 kB / 487.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.1276, allocations: 41.36 kB / 487.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.1278, allocations: 60.28 kB / 488 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008189/0.1286, allocations: 434.9 kB / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.1286, allocations: 7.906 kB / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.1287, allocations: 20 kB / 488.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.1287, allocations: 12 kB / 488.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005542/0.1293, allocations: 320.4 kB / 488.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.1313, allocations: 1.157 MB / 489.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000899/0.1322, allocations: 481.1 kB / 490.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.1326, allocations: 211 kB / 490.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.1326, allocations: 8.438 kB / 490.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.1326, allocations: 46.95 kB / 490.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 1.854e-06/0.1326, allocations: 0 / 490.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.002978/0.1356, allocations: 2.131 MB / 492.8 MB, free: 8.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.576e-05/0.1357, allocations: 85.67 kB / 492.9 MB, free: 8.051 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.1361, allocations: 258.9 kB / 493.1 MB, free: 7.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.1361, allocations: 33.7 kB / 493.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.1363, allocations: 217 kB / 493.4 MB, free: 7.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.1365, allocations: 268.1 kB / 493.6 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.1367, allocations: 118.6 kB / 493.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1369, allocations: 358.7 kB / 494.1 MB, free: 6.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.1372, allocations: 157.9 kB / 494.2 MB, free: 6.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.1375, allocations: 280.8 kB / 494.5 MB, free: 6.328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.1381, allocations: 472 kB / 495 MB, free: 5.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1381, allocations: 0 / 495 MB, free: 5.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007986/0.1389, allocations: 0.563 MB / 495.5 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.1389, allocations: 6.344 kB / 495.5 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.139, allocations: 4 kB / 495.6 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.139, allocations: 8 kB / 495.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005623/0.1396, allocations: 179.7 kB / 495.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.1396, allocations: 11.92 kB / 495.7 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.1398, allocations: 28.22 kB / 495.8 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.1399, allocations: 31.94 kB / 495.8 MB, free: 4.996 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.0001978/0.1401, allocations: 181.6 kB / 496 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.431e-05/0.1402, allocations: 43.53 kB / 496 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.813e-05/0.1403, allocations: 59.64 kB / 496.1 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.1403, allocations: 8 kB / 496.1 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.1403, allocations: 0 / 496.1 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.1403, allocations: 3.984 kB / 496.1 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.1422, allocations: 1.454 MB / 497.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1422, allocations: 8.062 kB / 497.6 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005802/0.1428, allocations: 159.8 kB / 497.7 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.1428, allocations: 4 kB / 497.7 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.1428, allocations: 27.86 kB / 497.7 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.1429, allocations: 7.938 kB / 497.8 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.1429, allocations: 4.062 kB / 497.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1439, allocations: 0.9148 MB / 498.7 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.957e-05/0.144, allocations: 116.5 kB / 498.8 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.512e-05/0.144, allocations: 23.94 kB / 498.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.1443, allocations: 16 kB / 498.8 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.3e-05/0.1444, allocations: 52.31 kB / 498.9 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.1444, allocations: 27.98 kB / 498.9 MB, free: 1.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.1446, allocations: 177.9 kB / 499.1 MB, free: 1.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1446, allocations: 0 / 499.1 MB, free: 1.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004867/0.1451, allocations: 144 kB / 499.2 MB, free: 1.398 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.0001202/0.1452, allocations: 123.1 kB / 499.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.146, allocations: 492 kB / 499.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.146, allocations: 0 / 499.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.1463, allocations: 234.2 kB / 0.4883 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.1471, allocations: 131.7 kB / 0.4885 GB, free: 452 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.1494, allocations: 1.664 MB / 0.4901 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.1498, allocations: 0.8485 MB / 0.4909 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.15, allocations: 60.64 kB / 0.491 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.218e-05/0.1501, allocations: 47.44 kB / 0.491 GB, free: 13.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1501, allocations: 0 / 0.491 GB, free: 13.73 MB / 382.1 MB Notification: Performance of Templates: time 0.008988/0.1591, allocations: 5.302 MB / 0.4962 GB, free: 8.492 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