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.00123/0.00123, allocations: 105 kB / 16.94 MB, free: 6.156 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.001156/0.001156, allocations: 191.3 kB / 17.86 MB, free: 5.289 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.422/1.422, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.2187/0.2187, allocations: 43.53 MB / 314.6 MB, free: 0.5352 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.001499/0.001499, allocations: 67.77 kB / 383.4 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1136, allocations: 57.79 MB / 441.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002701/0.1164, allocations: 1.905 MB / 443.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006943/0.1171, allocations: 0.5308 MB / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.904e-05/0.1172, allocations: 7.938 kB / 443.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1173, allocations: 19.78 kB / 443.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.382e-05/0.1174, allocations: 43.64 kB / 443.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.1176, allocations: 31.95 kB / 443.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.1177, allocations: 147.3 kB / 443.9 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.1179, allocations: 69.84 kB / 443.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.118, allocations: 55.8 kB / 444 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.1181, allocations: 67.7 kB / 444.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.1182, allocations: 15.94 kB / 444.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.533e-05/0.1182, allocations: 16 kB / 444.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.511e-05/0.1182, allocations: 23.91 kB / 444.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.388e-05/0.1183, allocations: 71.66 kB / 444.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.1184, allocations: 143.4 kB / 444.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1184, allocations: 8 kB / 444.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1184, allocations: 0 / 444.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1185, allocations: 0 / 444.3 MB, free: 3.762 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.0004666/0.1189, allocations: 430.9 kB / 444.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.119, allocations: 19.89 kB / 444.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.119, allocations: 12.75 kB / 444.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.1192, allocations: 204.1 kB / 445 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.1192, allocations: 12.38 kB / 445 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.849e-05/0.1192, allocations: 16.36 kB / 445 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.1195, allocations: 121.8 kB / 445.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1195, allocations: 4 kB / 445.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1195, allocations: 7.938 kB / 445.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.1195, allocations: 4 kB / 445.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.1197, allocations: 83.95 kB / 445.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.1202, allocations: 468.1 kB / 445.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.1205, allocations: 122.5 kB / 445.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.38e-05/0.1206, allocations: 56.83 kB / 445.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1206, allocations: 3.984 kB / 445.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.1206, allocations: 38.75 kB / 445.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.183e-06/0.1206, allocations: 0 / 445.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.00122/0.1218, allocations: 0.8065 MB / 446.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.1219, allocations: 55.41 kB / 446.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.634e-05/0.122, allocations: 137.2 kB / 446.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.122, allocations: 29.7 kB / 446.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.013e-05/0.1221, allocations: 120.3 kB / 447 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.1221, allocations: 67.02 kB / 447.1 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.1222, allocations: 37.7 kB / 447.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.633e-05/0.1222, allocations: 322.8 kB / 447.5 MB, free: 340 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.011e-05/0.1223, allocations: 39.98 kB / 447.5 MB, free: 300 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.669e-05/0.1224, allocations: 87.28 kB / 447.6 MB, free: 200 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.1226, allocations: 127.4 kB / 447.7 MB, free: 60 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1226, allocations: 0 / 447.7 MB, free: 60 kB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000361/0.1229, allocations: 210.2 kB / 447.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.123, allocations: 7.938 kB / 447.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.123, allocations: 4 kB / 447.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.1231, allocations: 48.88 kB / 448 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1233, allocations: 35.97 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.1247, allocations: 1.732 MB / 449.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.4e-05/0.1248, allocations: 4 kB / 449.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1248, allocations: 8 kB / 449.7 MB, free: 13.86 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.0001235/0.125, allocations: 137.8 kB / 449.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.125, allocations: 11.91 kB / 449.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.784e-05/0.1251, allocations: 21.19 kB / 449.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1251, allocations: 3.938 kB / 449.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1251, allocations: 0 / 449.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1251, allocations: 0 / 449.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007101/0.1258, allocations: 0.5552 MB / 450.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1258, allocations: 0 / 450.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.126, allocations: 36.16 kB / 450.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.1261, allocations: 40.81 kB / 450.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.1261, allocations: 8.031 kB / 450.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.1272, allocations: 1.473 MB / 452 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1272, allocations: 7.969 kB / 452 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004565/0.1276, allocations: 344.9 kB / 452.4 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.1277, allocations: 92.89 kB / 452.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.1277, allocations: 8.125 kB / 452.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.103e-05/0.1278, allocations: 4 kB / 452.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.1279, allocations: 27.84 kB / 452.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1279, allocations: 4 kB / 452.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.543e-05/0.128, allocations: 110.7 kB / 452.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 452.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1283, allocations: 44 kB / 452.7 MB, free: 10.7 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.0001036/0.1284, allocations: 99.23 kB / 452.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005087/0.1289, allocations: 269.3 kB / 453 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1289, allocations: 0 / 453 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.1292, allocations: 194.5 kB / 453.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.1295, allocations: 24.06 kB / 453.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007608/0.1303, allocations: 467.2 kB / 453.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.1306, allocations: 0.7126 MB / 454.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.1306, allocations: 15.44 kB / 454.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1307, allocations: 8 kB / 454.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of Templates: time 0.004116/0.1348, allocations: 2.411 MB / 456.8 MB, free: 6.426 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/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