Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001211, allocations: 176.2 kB / 16.72 MB, free: 4.957 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.267/1.267, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0007278/0.0007278, allocations: 88.39 kB / 271.2 MB, free: 8.238 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.3294/0.3294, allocations: 43.57 MB / 363.1 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003471, allocations: 19.98 kB / 432 MB, free: 5.812 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1023, allocations: 58.84 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002644/0.1049, allocations: 2.411 MB / 493.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1061, allocations: 0.7217 MB / 493.9 MB, free: 7.734 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1062, allocations: 8 kB / 494 MB, free: 7.727 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.1064, allocations: 43.58 kB / 494 MB, free: 7.684 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.1066, allocations: 107.1 kB / 494.1 MB, free: 7.578 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.1068, allocations: 67.92 kB / 494.2 MB, free: 7.512 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.1072, allocations: 410.4 kB / 494.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.1075, allocations: 167 kB / 494.7 MB, free: 6.938 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.1076, allocations: 143.4 kB / 494.9 MB, free: 6.797 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.1078, allocations: 159.2 kB / 495 MB, free: 6.641 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.985e-05/0.1079, allocations: 20 kB / 495 MB, free: 6.621 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.852e-05/0.108, allocations: 20 kB / 495.1 MB, free: 6.602 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.107e-05/0.108, allocations: 67.69 kB / 495.1 MB, free: 6.535 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001621/0.1082, allocations: 200.8 kB / 495.3 MB, free: 6.332 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.1085, allocations: 319.3 kB / 495.6 MB, free: 6.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1085, allocations: 0 / 495.6 MB, free: 6.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1085, allocations: 0 / 495.6 MB, free: 6.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.1085, allocations: 0 / 495.6 MB, free: 6.02 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008276/0.1093, allocations: 0.6083 MB / 496.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1094, allocations: 11.97 kB / 496.3 MB, free: 5.352 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/0.1095, allocations: 40.47 kB / 496.3 MB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.1098, allocations: 296.5 kB / 496.6 MB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.1098, allocations: 29.38 kB / 496.6 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.1099, allocations: 36.38 kB / 496.7 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006192/0.1105, allocations: 393.3 kB / 497 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.1105, allocations: 11.84 kB / 497.1 MB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.1106, allocations: 16 kB / 497.1 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.1106, allocations: 8 kB / 497.1 MB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005044/0.1111, allocations: 263.8 kB / 497.3 MB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.1126, allocations: 1.109 MB / 498.4 MB, free: 3.055 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005102/0.1131, allocations: 363.5 kB / 498.8 MB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.1134, allocations: 178.5 kB / 499 MB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.1134, allocations: 7.938 kB / 499 MB, free: 2.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1135, allocations: 46.55 kB / 499 MB, free: 2.426 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 1.532e-06/0.1135, allocations: 0 / 499 MB, free: 2.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.169/0.2825, allocations: 2.467 MB / 0.4897 GB, free: 42.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.2825, allocations: 113.4 kB / 0.4898 GB, free: 42.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.2828, allocations: 237.2 kB / 0.4901 GB, free: 42.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.2829, allocations: 36.42 kB / 0.4901 GB, free: 42.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.417e-05/0.283, allocations: 182.5 kB / 0.4903 GB, free: 42.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2831, allocations: 202 kB / 0.4905 GB, free: 42.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.2831, allocations: 8.125 kB / 0.4905 GB, free: 42.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.2832, allocations: 351 kB / 0.4908 GB, free: 42.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.2835, allocations: 132.1 kB / 0.4909 GB, free: 42.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.2838, allocations: 238.6 kB / 0.4912 GB, free: 42.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000561/0.2844, allocations: 399.4 kB / 0.4916 GB, free: 42.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2844, allocations: 0 / 0.4916 GB, free: 42.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001037/0.2854, allocations: 0.5602 MB / 0.4921 GB, free: 41.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.2855, allocations: 9.062 kB / 0.4921 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.2855, allocations: 3.375 kB / 0.4921 GB, free: 41.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003757/0.2859, allocations: 123.7 kB / 0.4922 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.2862, allocations: 104.5 kB / 0.4923 GB, free: 41.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002919/0.2892, allocations: 4.68 MB / 0.4969 GB, free: 37.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.2894, allocations: 31.05 kB / 0.4969 GB, free: 37.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.2895, allocations: 22.25 kB / 0.4969 GB, free: 37.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.2896, allocations: 159.2 kB / 0.4971 GB, free: 37.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.404e-05/0.2897, allocations: 42.38 kB / 0.4971 GB, free: 37.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.857e-05/0.2898, allocations: 50.5 kB / 0.4972 GB, free: 37.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2898, allocations: 10.31 kB / 0.4972 GB, free: 37.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.2898, allocations: 6.578 kB / 0.4972 GB, free: 37.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2899, allocations: 3.938 kB / 0.4972 GB, free: 37.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.2917, allocations: 1.331 MB / 0.4985 GB, free: 37.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2917, allocations: 1.375 kB / 0.4985 GB, free: 37.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.2921, allocations: 108.6 kB / 0.4986 GB, free: 37.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002437/0.2923, allocations: 88.47 kB / 0.4987 GB, free: 37.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.2924, allocations: 16.92 kB / 0.4987 GB, free: 37.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.2945, allocations: 4.114 MB / 0.5027 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.2945, allocations: 2 kB / 0.5027 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.2956, allocations: 0.9344 MB / 0.5036 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.2957, allocations: 112.5 kB / 0.5038 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.2958, allocations: 11.81 kB / 0.5038 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.296, allocations: 19.92 kB / 0.5038 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2961, allocations: 41.94 kB / 0.5038 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.2962, allocations: 19.77 kB / 0.5038 GB, free: 32.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001417/0.2963, allocations: 178.5 kB / 0.504 GB, free: 32.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2963, allocations: 0 / 0.504 GB, free: 32.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006468/0.297, allocations: 117.4 kB / 0.5041 GB, free: 32.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001028/0.2971, allocations: 111 kB / 0.5042 GB, free: 32.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.2981, allocations: 0.776 MB / 0.505 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2981, allocations: 7.094 kB / 0.505 GB, free: 32.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006693/0.2988, allocations: 0.5774 MB / 0.5056 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006164/0.2994, allocations: 64.47 kB / 0.5056 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.3009, allocations: 1.332 MB / 0.5069 GB, free: 30.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.3011, allocations: 0.8239 MB / 0.5077 GB, free: 30.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.311e-05/0.3012, allocations: 34.08 kB / 0.5078 GB, free: 30.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3012, allocations: 0 / 0.5078 GB, free: 30.06 MB / 378.7 MB Notification: Performance of Templates: time 0.008453/0.3097, allocations: 9.217 MB / 0.5168 GB, free: 29.29 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches