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.001107/0.001108, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001127, allocations: 214.4 kB / 18.59 MB, free: 4.402 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 / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2331/0.2331, allocations: 46.13 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 80.28 kB / 417.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1316, allocations: 62.45 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003663/0.1353, allocations: 1.919 MB / 482 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009978/0.1363, allocations: 0.5688 MB / 482.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.993e-05/0.1364, allocations: 8 kB / 482.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.1366, allocations: 15.8 kB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.1367, allocations: 51.56 kB / 482.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.137, allocations: 39.94 kB / 482.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.1372, allocations: 151.3 kB / 482.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.1374, allocations: 53.67 kB / 482.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.1375, allocations: 67.7 kB / 482.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.1377, allocations: 63.7 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.1377, allocations: 12 kB / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.575e-05/0.1378, allocations: 20 kB / 483 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.85e-05/0.1378, allocations: 23.92 kB / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.75e-05/0.1379, allocations: 71.59 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.1381, allocations: 159.7 kB / 483.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.1381, allocations: 4 kB / 483.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1381, allocations: 0 / 483.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1381, allocations: 3.938 kB / 483.3 MB, free: 1.965 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.000581/0.1387, allocations: 427.1 kB / 483.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1388, allocations: 12.03 kB / 483.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.1389, allocations: 24.73 kB / 483.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.1392, allocations: 208 kB / 483.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1392, allocations: 8.375 kB / 484 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1392, allocations: 20.38 kB / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.1395, allocations: 129.7 kB / 484.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1395, allocations: 0 / 484.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.1395, allocations: 8 kB / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1395, allocations: 3.938 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.1398, allocations: 87.88 kB / 484.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.1405, allocations: 472.2 kB / 484.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.1407, allocations: 118.4 kB / 484.8 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1408, allocations: 60.83 kB / 484.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.1408, allocations: 4 kB / 484.8 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.1408, allocations: 34.56 kB / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.1409, allocations: 0 / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001422/0.1423, allocations: 0.8114 MB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.1423, allocations: 55.41 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.1425, allocations: 140 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.1425, allocations: 29.7 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.1426, allocations: 116.3 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.236e-05/0.1426, allocations: 67.02 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.201e-05/0.1427, allocations: 33.7 kB / 486.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.1429, allocations: 330.8 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.96e-05/0.143, allocations: 35.98 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1431, allocations: 82.34 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.1434, allocations: 139.3 kB / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1434, allocations: 0 / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004082/0.1438, allocations: 210.1 kB / 486.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1438, allocations: 10.59 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1438, allocations: 4 kB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.144, allocations: 36.84 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.1442, allocations: 36 kB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.1456, allocations: 1.745 MB / 488.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.1457, allocations: 8 kB / 488.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1457, allocations: 4 kB / 488.7 MB, free: 12.05 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.0001056/0.1458, allocations: 129.8 kB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.1459, allocations: 7.906 kB / 488.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.1459, allocations: 25.25 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1459, allocations: 3.938 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1459, allocations: 7.938 kB / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.146, allocations: 3.938 kB / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007207/0.1467, allocations: 0.5582 MB / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1467, allocations: 0 / 489.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.1469, allocations: 39.91 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.065e-05/0.147, allocations: 24.84 kB / 489.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.147, allocations: 8.188 kB / 489.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.148, allocations: 1.481 MB / 491 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.148, allocations: 0 / 491 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00045/0.1485, allocations: 352.9 kB / 491.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.1486, allocations: 88.95 kB / 491.5 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.1486, allocations: 0 / 491.5 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/0.1487, allocations: 11.98 kB / 491.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.778e-05/0.1487, allocations: 19.98 kB / 491.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1487, allocations: 4 kB / 491.5 MB, free: 9.043 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.502e-05/0.1488, allocations: 110 kB / 491.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1488, allocations: 0 / 491.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.1491, allocations: 40 kB / 491.6 MB, free: 8.898 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.0001083/0.1493, allocations: 99.17 kB / 491.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.1497, allocations: 274.5 kB / 492 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1497, allocations: 0 / 492 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.15, allocations: 186.6 kB / 492.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.1504, allocations: 19.98 kB / 492.2 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007082/0.1511, allocations: 441.4 kB / 492.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.1514, allocations: 0.7166 MB / 493.4 MB, free: 7.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.1514, allocations: 13.41 kB / 493.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.1514, allocations: 15.44 kB / 493.4 MB, free: 7.062 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1515, allocations: 0 / 493.4 MB, free: 7.062 MB / 366.1 MB Notification: Performance of Templates: time 0.004504/0.156, allocations: 1.61 MB / 495 MB, free: 5.457 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches