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.00115/0.00115, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2503/0.2503, allocations: 46.11 MB / 344.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 83.14 kB / 419 MB, free: 19.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1145, allocations: 62.44 MB / 481.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003369/0.1179, allocations: 1.914 MB / 483.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009387/0.1188, allocations: 0.561 MB / 483.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.558e-05/0.1189, allocations: 7.938 kB / 483.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.1191, allocations: 19.8 kB / 484 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.641e-05/0.1192, allocations: 47.62 kB / 484 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.1194, allocations: 43.88 kB / 484.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.1196, allocations: 151.2 kB / 484.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1198, allocations: 69.2 kB / 484.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.12, allocations: 59.78 kB / 484.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.1201, allocations: 71.69 kB / 484.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.1202, allocations: 12 kB / 484.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.1202, allocations: 16 kB / 484.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.1202, allocations: 27.86 kB / 484.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.739e-05/0.1203, allocations: 67.67 kB / 484.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.1206, allocations: 155.4 kB / 484.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1206, allocations: 0 / 484.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1206, allocations: 4 kB / 484.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1206, allocations: 0 / 484.7 MB, free: 1.363 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.0006727/0.1213, allocations: 439 kB / 485.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1213, allocations: 12.03 kB / 485.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.1215, allocations: 24.73 kB / 485.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1218, allocations: 208 kB / 485.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.1219, allocations: 12.38 kB / 485.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.1219, allocations: 16.38 kB / 485.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.1222, allocations: 129.7 kB / 485.5 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1222, allocations: 3.938 kB / 485.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.1222, allocations: 8 kB / 485.5 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1222, allocations: 4 kB / 485.5 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.1224, allocations: 79.95 kB / 485.6 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/0.1232, allocations: 476.1 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.1234, allocations: 114.5 kB / 486.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.1235, allocations: 60.83 kB / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.1235, allocations: 0 / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.1236, allocations: 30.56 kB / 486.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.995e-06/0.1236, allocations: 0 / 486.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001421/0.125, allocations: 0.8127 MB / 487.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.1251, allocations: 51.41 kB / 487.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.1252, allocations: 145.8 kB / 487.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1252, allocations: 33.64 kB / 487.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.1253, allocations: 112.3 kB / 487.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.1253, allocations: 71 kB / 487.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.379e-05/0.1254, allocations: 37.7 kB / 487.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1255, allocations: 318.8 kB / 487.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.104e-05/0.1256, allocations: 39.98 kB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.1258, allocations: 91.28 kB / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.126, allocations: 131.3 kB / 488.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.126, allocations: 0 / 488.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003598/0.1264, allocations: 214.1 kB / 488.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.1264, allocations: 7.938 kB / 488.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.1264, allocations: 0 / 488.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.1266, allocations: 44.78 kB / 488.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.1268, allocations: 35.97 kB / 488.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.1282, allocations: 1.733 MB / 490.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.329e-05/0.1283, allocations: 4.25 kB / 490.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.1284, allocations: 12 kB / 490.1 MB, free: 11.44 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.0001084/0.1285, allocations: 133.8 kB / 490.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.1285, allocations: 11.91 kB / 490.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.1286, allocations: 25.12 kB / 490.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1286, allocations: 3.938 kB / 490.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1286, allocations: 0 / 490.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1286, allocations: 0 / 490.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007191/0.1293, allocations: 0.5531 MB / 490.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1293, allocations: 0 / 490.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.1295, allocations: 35.97 kB / 490.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.936e-05/0.1296, allocations: 32.84 kB / 490.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.1296, allocations: 0 / 490.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1307, allocations: 1.478 MB / 492.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1307, allocations: 0 / 492.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.1312, allocations: 351.3 kB / 492.7 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.1312, allocations: 92.94 kB / 492.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.1312, allocations: 8 kB / 492.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.152e-05/0.1313, allocations: 3.984 kB / 492.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.1314, allocations: 27.92 kB / 492.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.1314, allocations: 4 kB / 492.9 MB, free: 8.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.863e-05/0.1315, allocations: 109.7 kB / 493 MB, free: 8.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1315, allocations: 0 / 493 MB, free: 8.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.1319, allocations: 44 kB / 493 MB, free: 8.293 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.0001021/0.132, allocations: 99.19 kB / 493.1 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004706/0.1325, allocations: 262.6 kB / 493.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1325, allocations: 0 / 493.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.1327, allocations: 194.5 kB / 493.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.133, allocations: 20.11 kB / 493.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006949/0.1337, allocations: 437.3 kB / 494 MB, free: 7.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.134, allocations: 0.7166 MB / 494.7 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.92e-05/0.1341, allocations: 17.42 kB / 494.7 MB, free: 6.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.192e-05/0.1341, allocations: 15.44 kB / 494.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1341, allocations: 0 / 494.8 MB, free: 6.461 MB / 366.1 MB Notification: Performance of Templates: time 0.004276/0.1384, allocations: 1.604 MB / 496.4 MB, free: 4.863 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 -s gbode -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