Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 110.8 kB / 16.41 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 185.8 kB / 17.34 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2167/0.2167, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 71.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1332, allocations: 57.78 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.00542/0.1386, allocations: 3.282 MB / 0.4911 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.1403, allocations: 0.8383 MB / 0.4919 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002298/0.1405, allocations: 11.94 kB / 0.4919 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002247/0.1407, allocations: 75.23 kB / 0.492 GB, free: 7.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.1411, allocations: 170.5 kB / 0.4921 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.1414, allocations: 111.8 kB / 0.4922 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005583/0.1419, allocations: 0.6026 MB / 0.4928 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.1423, allocations: 173.3 kB / 0.493 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.1425, allocations: 227.2 kB / 0.4932 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002744/0.1428, allocations: 235 kB / 0.4934 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.1429, allocations: 47.94 kB / 0.4935 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.277e-05/0.143, allocations: 44 kB / 0.4935 GB, free: 6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.375e-05/0.1431, allocations: 99.69 kB / 0.4936 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.1433, allocations: 270.7 kB / 0.4939 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005489/0.1439, allocations: 0.5566 MB / 0.4944 GB, free: 5.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1439, allocations: 4 kB / 0.4944 GB, free: 5.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.018e-06/0.1439, allocations: 0 / 0.4944 GB, free: 5.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1439, allocations: 3.938 kB / 0.4944 GB, free: 5.07 MB / 382.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.001088/0.145, allocations: 0.7635 MB / 0.4952 GB, free: 4.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1451, allocations: 11.89 kB / 0.4952 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.783e-05/0.1452, allocations: 56.28 kB / 0.4952 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.1456, allocations: 322.4 kB / 0.4955 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.1456, allocations: 37.38 kB / 0.4956 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/0.1457, allocations: 56.27 kB / 0.4956 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006576/0.1464, allocations: 430.9 kB / 0.496 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.1464, allocations: 23.88 kB / 0.4961 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.1465, allocations: 16 kB / 0.4961 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1465, allocations: 12 kB / 0.4961 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004805/0.147, allocations: 316.4 kB / 0.4964 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.1486, allocations: 1.134 MB / 0.4975 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007188/0.1493, allocations: 497 kB / 0.498 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.1496, allocations: 210.9 kB / 0.4982 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.1496, allocations: 4.438 kB / 0.4982 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.1497, allocations: 47.03 kB / 0.4982 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 1.904e-06/0.1497, allocations: 0 / 0.4982 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of matching and sorting (n=74): time 0.003001/0.1527, allocations: 2.151 MB / 0.5003 GB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.1527, allocations: 81.67 kB / 0.5004 GB, free: 14.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.153, allocations: 251 kB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.153, allocations: 33.7 kB / 0.5007 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1531, allocations: 213 kB / 0.5009 GB, free: 14.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.1533, allocations: 272 kB / 0.5011 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.1535, allocations: 118.7 kB / 0.5013 GB, free: 13.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1536, allocations: 362.7 kB / 0.5016 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.1539, allocations: 161.9 kB / 0.5018 GB, free: 13.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003466/0.1543, allocations: 272.8 kB / 0.502 GB, free: 12.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006339/0.1549, allocations: 466.9 kB / 0.5025 GB, free: 12.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1549, allocations: 4 kB / 0.5025 GB, free: 12.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0008264/0.1557, allocations: 0.568 MB / 0.503 GB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.1558, allocations: 4 kB / 0.503 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1558, allocations: 8.219 kB / 0.503 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.997e-05/0.1558, allocations: 12 kB / 0.503 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/0.1564, allocations: 175.8 kB / 0.5032 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.1564, allocations: 4 kB / 0.5032 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/0.1567, allocations: 24 kB / 0.5032 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.1568, allocations: 43.91 kB / 0.5033 GB, free: 11.49 MB / 398.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.0002289/0.157, allocations: 177.6 kB / 0.5034 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.483e-05/0.1571, allocations: 55.44 kB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.1572, allocations: 59.64 kB / 0.5036 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1572, allocations: 4 kB / 0.5036 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1573, allocations: 4 kB / 0.5036 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.1573, allocations: 3.984 kB / 0.5036 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.1592, allocations: 1.436 MB / 0.505 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1592, allocations: 352 / 0.505 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.1598, allocations: 167.7 kB / 0.5051 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.1598, allocations: 4 kB / 0.5051 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.1599, allocations: 23.94 kB / 0.5052 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.1599, allocations: 8 kB / 0.5052 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1599, allocations: 4 kB / 0.5052 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.161, allocations: 0.9156 MB / 0.5061 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.1612, allocations: 116.6 kB / 0.5062 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.887e-05/0.1613, allocations: 19.92 kB / 0.5062 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.1615, allocations: 20 kB / 0.5062 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.824e-05/0.1616, allocations: 48.31 kB / 0.5063 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.1617, allocations: 20 kB / 0.5063 GB, free: 8.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.1619, allocations: 189.9 kB / 0.5065 GB, free: 8.043 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1619, allocations: 0 / 0.5065 GB, free: 8.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.1624, allocations: 144 kB / 0.5066 GB, free: 7.902 MB / 398.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.0001696/0.1626, allocations: 115.1 kB / 0.5067 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007729/0.1634, allocations: 456 kB / 0.5071 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1634, allocations: 8.125 kB / 0.5071 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.1637, allocations: 238.2 kB / 0.5074 GB, free: 7.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008559/0.1646, allocations: 128.6 kB / 0.5075 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.167, allocations: 1.66 MB / 0.5091 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.1675, allocations: 0.8407 MB / 0.5099 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001926/0.1677, allocations: 60.66 kB / 0.51 GB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.87e-05/0.1678, allocations: 39.44 kB / 0.51 GB, free: 4.277 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1678, allocations: 4 kB / 0.51 GB, free: 4.273 MB / 398.1 MB Notification: Performance of Templates: time 0.01135/0.1791, allocations: 5.411 MB / 0.5153 GB, free: 14.88 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches