Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_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.001455/0.001456, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.00167/0.00167, allocations: 192 kB / 19.34 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 243 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2335/0.2335, allocations: 44.17 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001189, allocations: 62.56 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1436, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003318/0.147, allocations: 1.899 MB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008453/0.1478, allocations: 0.4949 MB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.11e-05/0.1479, allocations: 3.938 kB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.1481, allocations: 19.8 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.602e-05/0.1482, allocations: 43.62 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.1484, allocations: 27.97 kB / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.1486, allocations: 151.3 kB / 473.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.1487, allocations: 65.66 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.1489, allocations: 63.7 kB / 473.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.149, allocations: 63.7 kB / 473.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.149, allocations: 12 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.174e-05/0.149, allocations: 12 kB / 473.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.1491, allocations: 27.92 kB / 473.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.201e-05/0.1491, allocations: 71.61 kB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.1493, allocations: 159.4 kB / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1494, allocations: 0 / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1494, allocations: 0 / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.1494, allocations: 0 / 473.8 MB, free: 10.55 MB / 350.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.0005489/0.1499, allocations: 433.9 kB / 474.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.15, allocations: 8.031 kB / 474.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.388e-05/0.15, allocations: 20.75 kB / 474.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.1503, allocations: 200.1 kB / 474.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.1503, allocations: 8.375 kB / 474.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.1503, allocations: 12.38 kB / 474.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.1506, allocations: 129.8 kB / 474.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1506, allocations: 3.906 kB / 474.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.1506, allocations: 4 kB / 474.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1507, allocations: 7.984 kB / 474.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.1508, allocations: 83.95 kB / 474.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006456/0.1515, allocations: 472.1 kB / 475.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.1517, allocations: 126.5 kB / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.1519, allocations: 60.77 kB / 475.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1519, allocations: 4 kB / 475.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.1519, allocations: 46.5 kB / 475.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.252e-06/0.1519, allocations: 0 / 475.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001445/0.1534, allocations: 0.7926 MB / 476.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.1534, allocations: 55.41 kB / 476.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.1535, allocations: 136.7 kB / 476.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.1536, allocations: 29.7 kB / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.947e-05/0.1536, allocations: 112.3 kB / 476.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.995e-05/0.1537, allocations: 74.98 kB / 476.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.1538, allocations: 37.7 kB / 476.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1539, allocations: 322.8 kB / 476.9 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.951e-05/0.154, allocations: 39.98 kB / 477 MB, free: 7.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.1541, allocations: 87.28 kB / 477.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.1543, allocations: 131.3 kB / 477.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1543, allocations: 4 kB / 477.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003523/0.1547, allocations: 198.3 kB / 477.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1547, allocations: 11.88 kB / 477.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1547, allocations: 4 kB / 477.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000165/0.1549, allocations: 40.83 kB / 477.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.1551, allocations: 31.98 kB / 477.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.1566, allocations: 1.744 MB / 479.2 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.472e-05/0.1567, allocations: 4 kB / 479.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.1567, allocations: 8 kB / 479.2 MB, free: 4.656 MB / 350.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.0001099/0.1569, allocations: 125.8 kB / 479.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.1569, allocations: 15.81 kB / 479.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.1569, allocations: 25.17 kB / 479.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.157, allocations: 3.938 kB / 479.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.157, allocations: 64 / 479.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.157, allocations: 8 kB / 479.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007501/0.1577, allocations: 0.5419 MB / 479.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1577, allocations: 0 / 479.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1579, allocations: 31.98 kB / 480 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.158, allocations: 44.8 kB / 480 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.158, allocations: 0 / 480 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.1593, allocations: 1.481 MB / 481.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1593, allocations: 3.938 kB / 481.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.1598, allocations: 341 kB / 481.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.1599, allocations: 89.08 kB / 481.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.1599, allocations: 15.94 kB / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.05e-05/0.16, allocations: 0 / 481.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.275e-05/0.1601, allocations: 23.91 kB / 482 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.1601, allocations: 4 kB / 482 MB, free: 1.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.263e-05/0.1602, allocations: 110 kB / 482.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1602, allocations: 0 / 482.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.1605, allocations: 44 kB / 482.1 MB, free: 1.516 MB / 350.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.0001426/0.1607, allocations: 95.25 kB / 482.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000589/0.1613, allocations: 258.5 kB / 482.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1613, allocations: 0 / 482.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.1616, allocations: 198.6 kB / 482.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.162, allocations: 28.38 kB / 482.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009179/0.1629, allocations: 437.1 kB / 483.1 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.1633, allocations: 0.7243 MB / 483.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.894e-05/0.1634, allocations: 13.41 kB / 483.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.1634, allocations: 19.38 kB / 483.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1634, allocations: 0 / 483.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Templates: time 0.004958/0.1684, allocations: 1.588 MB / 485.5 MB, free: 14.09 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches