Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 180.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000761/0.0007609, allocations: 90.36 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3305/0.3305, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003832, allocations: 12 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1153, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001704/0.117, allocations: 1.337 MB / 491.6 MB, free: 9.883 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002608/0.1173, allocations: 111.6 kB / 491.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.168e-05/0.1173, allocations: 0 / 491.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/0.1174, allocations: 11.92 kB / 491.7 MB, free: 9.762 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.683e-05/0.1175, allocations: 31.77 kB / 491.7 MB, free: 9.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001032/0.1176, allocations: 15.98 kB / 491.7 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1177, allocations: 123.4 kB / 491.9 MB, free: 9.594 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.1179, allocations: 29.09 kB / 491.9 MB, free: 9.566 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.34e-05/0.1179, allocations: 35.86 kB / 491.9 MB, free: 9.531 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.363e-05/0.118, allocations: 47.78 kB / 492 MB, free: 9.484 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.1181, allocations: 8 kB / 492 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.059e-05/0.1181, allocations: 4 kB / 492 MB, free: 9.473 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.82e-05/0.1181, allocations: 19.92 kB / 492 MB, free: 9.453 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.882e-05/0.1181, allocations: 45.64 kB / 492 MB, free: 9.402 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.1183, allocations: 95.97 kB / 492.1 MB, free: 9.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1183, allocations: 0 / 492.1 MB, free: 9.309 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1183, allocations: 0 / 492.1 MB, free: 9.309 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1183, allocations: 0 / 492.1 MB, free: 9.309 MB / 378.7 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.0004814/0.1188, allocations: 390.9 kB / 492.5 MB, free: 8.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1188, allocations: 16.02 kB / 492.5 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.1189, allocations: 15.77 kB / 492.5 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.1191, allocations: 198.9 kB / 492.7 MB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1191, allocations: 8.234 kB / 492.7 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.1191, allocations: 15.98 kB / 492.8 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.1194, allocations: 128.9 kB / 492.9 MB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.1194, allocations: 3.906 kB / 492.9 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.1194, allocations: 11.94 kB / 492.9 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.1194, allocations: 3.984 kB / 492.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.1196, allocations: 67.92 kB / 493 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007189/0.1203, allocations: 0.5412 MB / 493.5 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.1204, allocations: 85.22 kB / 493.6 MB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.444e-05/0.1205, allocations: 29.66 kB / 493.6 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.1205, allocations: 96 / 493.6 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1205, allocations: 38.55 kB / 493.7 MB, free: 7.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.1205, allocations: 4 kB / 493.7 MB, free: 7.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005684/0.1211, allocations: 301.4 kB / 494 MB, free: 7.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.1212, allocations: 77.11 kB / 494 MB, free: 7.141 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1213, allocations: 121.8 kB / 494.2 MB, free: 7.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.1213, allocations: 29.7 kB / 494.2 MB, free: 6.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.315e-05/0.1214, allocations: 123.5 kB / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.1214, allocations: 31.55 kB / 494.3 MB, free: 6.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/0.1214, allocations: 8 kB / 494.3 MB, free: 6.812 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1216, allocations: 318.8 kB / 494.7 MB, free: 6.492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.856e-05/0.1216, allocations: 23.94 kB / 494.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-05/0.1217, allocations: 84.23 kB / 494.8 MB, free: 6.359 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.221e-05/0.1218, allocations: 39.98 kB / 494.8 MB, free: 6.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.1218, allocations: 0 / 494.8 MB, free: 6.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000253/0.122, allocations: 167.4 kB / 495 MB, free: 6.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1221, allocations: 8 kB / 495 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1221, allocations: 4 kB / 495 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.1223, allocations: 41.64 kB / 495 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.969e-05/0.1223, allocations: 20.23 kB / 495 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.1241, allocations: 2.533 MB / 497.6 MB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.825e-05/0.1241, allocations: 15.84 kB / 497.6 MB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1242, allocations: 8 kB / 497.6 MB, free: 3.242 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.1243, allocations: 137.8 kB / 497.7 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.1243, allocations: 11.89 kB / 497.7 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.257e-05/0.1244, allocations: 7.906 kB / 497.8 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1244, allocations: 4 kB / 497.8 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1244, allocations: 3.938 kB / 497.8 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1244, allocations: 0 / 497.8 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002477/0.1246, allocations: 209.5 kB / 498 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1246, allocations: 0 / 498 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.19e-05/0.1247, allocations: 16 kB / 498 MB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-05/0.1248, allocations: 33.7 kB / 498 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.1249, allocations: 4 kB / 498 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1877/0.3126, allocations: 2.532 MB / 0.4888 GB, free: 42.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3126, allocations: 0 / 0.4888 GB, free: 42.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.3129, allocations: 302.3 kB / 0.4891 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.313, allocations: 85.42 kB / 0.4892 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.313, allocations: 3.141 kB / 0.4892 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.3131, allocations: 3.344 kB / 0.4892 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.3132, allocations: 13.91 kB / 0.4892 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.3132, allocations: 2.938 kB / 0.4892 GB, free: 42.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.804e-05/0.3133, allocations: 92.34 kB / 0.4893 GB, free: 42.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3133, allocations: 0 / 0.4893 GB, free: 42.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005038/0.3138, allocations: 35.47 kB / 0.4893 GB, free: 42.08 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001199/0.3139, allocations: 96.31 kB / 0.4894 GB, free: 42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004877/0.3144, allocations: 301.7 kB / 0.4897 GB, free: 41.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3144, allocations: 1.188 kB / 0.4897 GB, free: 41.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002661/0.3147, allocations: 251.9 kB / 0.4899 GB, free: 41.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.3152, allocations: 21.47 kB / 0.49 GB, free: 41.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009428/0.3162, allocations: 0.5934 MB / 0.4905 GB, free: 41.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3164, allocations: 0.7153 MB / 0.4912 GB, free: 40.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.3165, allocations: 11.53 kB / 0.4913 GB, free: 40.5 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3165, allocations: 0 / 0.4913 GB, free: 40.5 MB / 378.7 MB Notification: Performance of Templates: time 0.005223/0.3217, allocations: 2.413 MB / 0.4936 GB, free: 40.37 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches