Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 212 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2225/0.2225, allocations: 46.09 MB / 344.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 71.5 kB / 418.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1228, allocations: 62.45 MB / 480.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003229/0.1261, allocations: 1.919 MB / 482.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009197/0.127, allocations: 0.5649 MB / 483.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.688e-05/0.1271, allocations: 4 kB / 483.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.1273, allocations: 19.8 kB / 483.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.498e-05/0.1274, allocations: 35.64 kB / 483.2 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.1276, allocations: 55.86 kB / 483.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.1278, allocations: 147.3 kB / 483.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.128, allocations: 57.66 kB / 483.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1281, allocations: 67.72 kB / 483.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1283, allocations: 59.7 kB / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.1283, allocations: 12 kB / 483.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.1284, allocations: 23.98 kB / 483.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.1284, allocations: 23.92 kB / 483.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.1285, allocations: 71.67 kB / 483.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.1287, allocations: 159.6 kB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1287, allocations: 0 / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.1287, allocations: 0 / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1287, allocations: 3.938 kB / 483.9 MB, free: 2.086 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.0005514/0.1293, allocations: 435 kB / 484.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1293, allocations: 11.97 kB / 484.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.1295, allocations: 24.73 kB / 484.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.1297, allocations: 208 kB / 484.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.1297, allocations: 12.38 kB / 484.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.1297, allocations: 12.38 kB / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.13, allocations: 133.7 kB / 484.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.13, allocations: 4 kB / 484.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.13, allocations: 7.984 kB / 484.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.13, allocations: 4 kB / 484.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.1302, allocations: 75.95 kB / 484.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.1309, allocations: 472.1 kB / 485.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.1311, allocations: 118.5 kB / 485.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.1312, allocations: 56.84 kB / 485.4 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1312, allocations: 11.94 kB / 485.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.1313, allocations: 34.55 kB / 485.5 MB, free: 344 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.1313, allocations: 0 / 485.5 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001402/0.1327, allocations: 0.8005 MB / 486.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.1327, allocations: 59.41 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.1328, allocations: 140.1 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.1329, allocations: 29.7 kB / 486.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.1329, allocations: 108.3 kB / 486.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.982e-05/0.133, allocations: 74.98 kB / 486.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.133, allocations: 33.72 kB / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1332, allocations: 330.8 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.474e-05/0.1333, allocations: 43.92 kB / 487.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.1334, allocations: 78.34 kB / 487.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.1336, allocations: 139.3 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1336, allocations: 4 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003433/0.134, allocations: 202.1 kB / 487.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.134, allocations: 14.59 kB / 487.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.134, allocations: 0 / 487.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.1342, allocations: 44.86 kB / 487.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.1343, allocations: 40.03 kB / 487.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.1357, allocations: 1.737 MB / 489.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.232e-05/0.1358, allocations: 8.031 kB / 489.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.1358, allocations: 4 kB / 489.4 MB, free: 12.17 MB / 366.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.0001025/0.1359, allocations: 133.8 kB / 489.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.1359, allocations: 11.91 kB / 489.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.554e-05/0.136, allocations: 21.17 kB / 489.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.136, allocations: 7.938 kB / 489.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.136, allocations: 0 / 489.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.136, allocations: 3.938 kB / 489.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007105/0.1367, allocations: 0.5544 MB / 490.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1367, allocations: 0 / 490.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1369, allocations: 35.92 kB / 490.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.884e-05/0.137, allocations: 33.02 kB / 490.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.137, allocations: 8 kB / 490.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.1381, allocations: 1.481 MB / 491.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1381, allocations: 0 / 491.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004592/0.1386, allocations: 348.9 kB / 492 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/0.1386, allocations: 88.95 kB / 492.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.1387, allocations: 4 kB / 492.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.965e-05/0.1388, allocations: 8.125 kB / 492.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.1388, allocations: 15.92 kB / 492.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1388, allocations: 11.98 kB / 492.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.337e-05/0.1389, allocations: 106 kB / 492.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1389, allocations: 0 / 492.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.1392, allocations: 44 kB / 492.3 MB, free: 9.016 MB / 366.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.0001158/0.1394, allocations: 95.25 kB / 492.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.1399, allocations: 270.4 kB / 492.6 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1399, allocations: 0 / 492.6 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.1402, allocations: 194.6 kB / 492.8 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.1406, allocations: 16 kB / 492.8 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007898/0.1414, allocations: 479.1 kB / 493.3 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.1417, allocations: 0.7166 MB / 494 MB, free: 7.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.916e-05/0.1417, allocations: 15.44 kB / 494 MB, free: 7.152 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1417, allocations: 0 / 494 MB, free: 7.152 MB / 366.1 MB Notification: Performance of Templates: time 0.004158/0.1459, allocations: 2.443 MB / 496.5 MB, free: 4.711 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches