Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 119.2 kB / 17.09 MB, free: 6.012 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.001585/0.001585, allocations: 193.3 kB / 18.01 MB, free: 5.098 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.361/1.361, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.202/0.202, allocations: 43.53 MB / 314.8 MB, free: 472 kB / 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.001422/0.001422, allocations: 63.89 kB / 442.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1161, allocations: 57.78 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003044/0.1192, allocations: 1.664 MB / 0.4901 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003497/0.1195, allocations: 107.6 kB / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.409e-05/0.1196, allocations: 0 / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.899e-05/0.1197, allocations: 19.8 kB / 0.4903 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.1199, allocations: 35.7 kB / 0.4903 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.12, allocations: 23.95 kB / 0.4903 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.1202, allocations: 127.4 kB / 0.4904 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1204, allocations: 41.09 kB / 0.4905 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.1205, allocations: 51.84 kB / 0.4905 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.351e-05/0.1206, allocations: 47.78 kB / 0.4906 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.1207, allocations: 8 kB / 0.4906 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.822e-05/0.1207, allocations: 8 kB / 0.4906 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.779e-05/0.1207, allocations: 23.92 kB / 0.4906 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.841e-05/0.1208, allocations: 59.73 kB / 0.4907 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.121, allocations: 131.5 kB / 0.4908 GB, free: 9.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.121, allocations: 0 / 0.4908 GB, free: 9.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.121, allocations: 0 / 0.4908 GB, free: 9.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.121, allocations: 0 / 0.4908 GB, free: 9.496 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005245/0.1216, allocations: 415.3 kB / 0.4912 GB, free: 9.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1216, allocations: 11.89 kB / 0.4912 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.1217, allocations: 12.78 kB / 0.4912 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.1219, allocations: 200.1 kB / 0.4914 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.1219, allocations: 12.61 kB / 0.4914 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.1219, allocations: 16.36 kB / 0.4914 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.1222, allocations: 125.5 kB / 0.4915 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.1222, allocations: 8.188 kB / 0.4916 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.1222, allocations: 3.938 kB / 0.4916 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1222, allocations: 4 kB / 0.4916 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.1224, allocations: 59.89 kB / 0.4916 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/0.1231, allocations: 0.541 MB / 0.4922 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.1233, allocations: 85.06 kB / 0.4922 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.567e-05/0.1233, allocations: 33.89 kB / 0.4923 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.1234, allocations: 7.938 kB / 0.4923 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.1234, allocations: 38.5 kB / 0.4923 GB, free: 7.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.1234, allocations: 0 / 0.4923 GB, free: 7.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006207/0.124, allocations: 297.4 kB / 0.4926 GB, free: 7.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.1241, allocations: 81.11 kB / 0.4927 GB, free: 7.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1242, allocations: 125.8 kB / 0.4928 GB, free: 7.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1242, allocations: 25.7 kB / 0.4928 GB, free: 7.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.1243, allocations: 115.6 kB / 0.4929 GB, free: 7.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.1244, allocations: 43.44 kB / 0.493 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.1244, allocations: 29.7 kB / 0.493 GB, free: 6.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1246, allocations: 322.8 kB / 0.4933 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.72e-05/0.1246, allocations: 23.98 kB / 0.4933 GB, free: 6.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.373e-05/0.1247, allocations: 87.75 kB / 0.4934 GB, free: 6.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/0.1249, allocations: 120.5 kB / 0.4935 GB, free: 6.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.1249, allocations: 4 kB / 0.4935 GB, free: 6.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002725/0.1251, allocations: 171.1 kB / 0.4937 GB, free: 6.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1252, allocations: 8 kB / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1252, allocations: 0 / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002049/0.1254, allocations: 41.64 kB / 0.4937 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.861e-05/0.1255, allocations: 23.88 kB / 0.4938 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.1275, allocations: 2.742 MB / 0.4964 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.586e-05/0.1276, allocations: 8.062 kB / 0.4964 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1276, allocations: 12 kB / 0.4965 GB, free: 3.039 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.1277, allocations: 129.7 kB / 0.4966 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.1278, allocations: 7.906 kB / 0.4966 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.1278, allocations: 19.83 kB / 0.4966 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1278, allocations: 4 kB / 0.4966 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1278, allocations: 0 / 0.4966 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1278, allocations: 0 / 0.4966 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.1281, allocations: 205.6 kB / 0.4968 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1281, allocations: 0 / 0.4968 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.591e-05/0.1282, allocations: 12 kB / 0.4968 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.1283, allocations: 37.64 kB / 0.4969 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.1284, allocations: 7.938 kB / 0.4969 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.1302, allocations: 2.73 MB / 0.4995 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1303, allocations: 0 / 0.4995 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.1306, allocations: 312.9 kB / 0.4998 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.1306, allocations: 84.95 kB / 0.4999 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1306, allocations: 4 kB / 0.4999 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.051e-05/0.1307, allocations: 4 kB / 0.4999 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.1308, allocations: 11.97 kB / 0.4999 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1308, allocations: 0 / 0.4999 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.706e-05/0.1309, allocations: 103.2 kB / 0.5 GB, free: 14.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1309, allocations: 0 / 0.5 GB, free: 14.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003802/0.1313, allocations: 35.91 kB / 0.5001 GB, free: 14.95 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001233/0.1314, allocations: 95.25 kB / 0.5001 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005116/0.1319, allocations: 309.8 kB / 0.5004 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.1319, allocations: 0 / 0.5004 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.1322, allocations: 257.4 kB / 0.5007 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.1327, allocations: 31.89 kB / 0.5007 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008083/0.1335, allocations: 0.493 MB / 0.5012 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1339, allocations: 0.7045 MB / 0.5019 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.68e-05/0.1339, allocations: 11.44 kB / 0.5019 GB, free: 12.95 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1339, allocations: 4 kB / 0.5019 GB, free: 12.95 MB / 398.1 MB Notification: Performance of Templates: time 0.004521/0.1384, allocations: 2.437 MB / 0.5043 GB, free: 10.5 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches