Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001048/0.001048, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.456/1.456, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2152/0.2152, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 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.001916/0.001916, allocations: 68.97 kB / 382.7 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1463, allocations: 57.79 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003564/0.1499, allocations: 1.9 MB / 442.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009346/0.1509, allocations: 0.5269 MB / 442.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.1511, allocations: 7.938 kB / 443 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.1512, allocations: 19.8 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.1514, allocations: 39.62 kB / 443 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1516, allocations: 35.95 kB / 443 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.1518, allocations: 143.3 kB / 443.2 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.152, allocations: 65.91 kB / 443.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.1521, allocations: 63.73 kB / 443.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1523, allocations: 59.7 kB / 443.4 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.1523, allocations: 12 kB / 443.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.567e-05/0.1523, allocations: 16 kB / 443.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.1524, allocations: 27.91 kB / 443.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.693e-05/0.1524, allocations: 71.66 kB / 443.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1526, allocations: 151.4 kB / 443.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.1526, allocations: 0 / 443.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1527, allocations: 4 kB / 443.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.1527, allocations: 0 / 443.6 MB, free: 3.742 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005687/0.1533, allocations: 430.9 kB / 444.1 MB, free: 3.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1533, allocations: 15.89 kB / 444.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.1534, allocations: 16.75 kB / 444.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.1536, allocations: 204.1 kB / 444.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1536, allocations: 16.36 kB / 444.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.1537, allocations: 16.38 kB / 444.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.154, allocations: 125.8 kB / 444.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.154, allocations: 0 / 444.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.154, allocations: 8 kB / 444.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.154, allocations: 4 kB / 444.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.1542, allocations: 75.95 kB / 444.5 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006677/0.1549, allocations: 480 kB / 445 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.1551, allocations: 122.5 kB / 445.1 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.1552, allocations: 56.83 kB / 445.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.1553, allocations: 7.938 kB / 445.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.1553, allocations: 34.81 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.1553, allocations: 0 / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001345/0.1567, allocations: 0.8019 MB / 446 MB, free: 1.109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.1567, allocations: 59.41 kB / 446.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.789e-05/0.1568, allocations: 134.2 kB / 446.2 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.1568, allocations: 25.7 kB / 446.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.1569, allocations: 124.3 kB / 446.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.1569, allocations: 63.02 kB / 446.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.157, allocations: 37.7 kB / 446.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.891e-05/0.1571, allocations: 318.8 kB / 446.8 MB, free: 324 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.451e-05/0.1572, allocations: 47.92 kB / 446.8 MB, free: 276 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.218e-05/0.1573, allocations: 79.34 kB / 446.9 MB, free: 184 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.1574, allocations: 139.3 kB / 447 MB, free: 32 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1574, allocations: 0 / 447 MB, free: 32 kB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004346/0.1579, allocations: 206.1 kB / 447.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.1579, allocations: 7.938 kB / 447.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1579, allocations: 3.984 kB / 447.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.1581, allocations: 52.81 kB / 447.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1583, allocations: 35.97 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/0.16, allocations: 1.733 MB / 449.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.829e-05/0.1601, allocations: 4 kB / 449.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.1601, allocations: 12 kB / 449.1 MB, free: 13.83 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.1602, allocations: 133.8 kB / 449.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.1603, allocations: 15.89 kB / 449.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.1604, allocations: 13.19 kB / 449.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1604, allocations: 7.938 kB / 449.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1604, allocations: 0 / 449.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1604, allocations: 0 / 449.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.1612, allocations: 0.5553 MB / 449.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1612, allocations: 0 / 449.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.1614, allocations: 43.91 kB / 449.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.1615, allocations: 28.84 kB / 449.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1615, allocations: 4 kB / 449.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.1627, allocations: 1.485 MB / 451.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1627, allocations: 4.031 kB / 451.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004772/0.1632, allocations: 344.8 kB / 451.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.867e-05/0.1632, allocations: 88.95 kB / 451.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.1633, allocations: 12.12 kB / 451.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.184e-05/0.1634, allocations: 0 / 451.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.45e-05/0.1634, allocations: 27.84 kB / 451.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.1634, allocations: 4 kB / 451.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.39e-05/0.1635, allocations: 114.7 kB / 451.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1635, allocations: 0 / 451.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.1639, allocations: 40 kB / 452 MB, free: 10.67 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001281/0.164, allocations: 99.25 kB / 452.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.1645, allocations: 262.6 kB / 452.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1646, allocations: 4 kB / 452.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.1648, allocations: 201.3 kB / 452.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.1653, allocations: 24.47 kB / 452.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00098/0.1663, allocations: 441.2 kB / 453 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.1667, allocations: 0.7166 MB / 453.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.164e-05/0.1667, allocations: 17.42 kB / 453.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.1668, allocations: 11.44 kB / 453.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1668, allocations: 3.938 kB / 453.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of Templates: time 0.005606/0.1724, allocations: 1.591 MB / 455.3 MB, free: 7.242 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches