Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001413/0.001413, allocations: 180.4 kB / 16.41 MB, free: 5.703 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.7/1.7, 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.0008584/0.0008587, allocations: 86.42 kB / 270.9 MB, free: 8.363 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.3686/0.3686, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003719, allocations: 12 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002762/0.1187, allocations: 2.396 MB / 492.6 MB, free: 8.832 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1198, allocations: 0.7218 MB / 493.3 MB, free: 8.102 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.1199, allocations: 7.938 kB / 493.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.1201, allocations: 35.7 kB / 493.4 MB, free: 8.059 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.1203, allocations: 103.2 kB / 493.5 MB, free: 7.957 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.1205, allocations: 71.86 kB / 493.6 MB, free: 7.887 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003781/0.1209, allocations: 402 kB / 494 MB, free: 7.492 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.1211, allocations: 112 kB / 494.1 MB, free: 7.375 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.1213, allocations: 135.5 kB / 494.2 MB, free: 7.242 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1215, allocations: 159.2 kB / 494.3 MB, free: 7.086 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/0.1215, allocations: 20 kB / 494.4 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.287e-05/0.1216, allocations: 20 kB / 494.4 MB, free: 7.047 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.1216, allocations: 63.75 kB / 494.5 MB, free: 6.984 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.139e-05/0.1217, allocations: 101.5 kB / 494.5 MB, free: 6.879 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.122, allocations: 303.4 kB / 494.8 MB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.122, allocations: 4 kB / 494.9 MB, free: 6.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.122, allocations: 0 / 494.9 MB, free: 6.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.122, allocations: 3.938 kB / 494.9 MB, free: 6.574 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008651/0.1229, allocations: 0.5926 MB / 495.4 MB, free: 5.934 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.123, allocations: 8.031 kB / 495.5 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.461e-05/0.123, allocations: 39.53 kB / 495.5 MB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.1234, allocations: 267.2 kB / 495.8 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.1234, allocations: 25 kB / 495.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.868e-05/0.1235, allocations: 47.98 kB / 495.8 MB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.1241, allocations: 398 kB / 496.2 MB, free: 5.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.1242, allocations: 11.89 kB / 496.2 MB, free: 5.078 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.1242, allocations: 16 kB / 496.2 MB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1242, allocations: 8 kB / 496.2 MB, free: 5.055 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.1247, allocations: 235.7 kB / 496.5 MB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1268, allocations: 1.719 MB / 498.2 MB, free: 2.996 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004415/0.1273, allocations: 270.3 kB / 498.5 MB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.1275, allocations: 106 kB / 498.6 MB, free: 2.543 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.1275, allocations: 11.98 kB / 498.6 MB, free: 2.531 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1275, allocations: 42.5 kB / 498.6 MB, free: 2.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.1275, allocations: 0 / 498.6 MB, free: 2.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.000657/0.1282, allocations: 269.3 kB / 498.9 MB, free: 2.211 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.912e-05/0.1283, allocations: 217.6 kB / 499.1 MB, free: 1.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.1286, allocations: 270.8 kB / 499.4 MB, free: 1.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1286, allocations: 37.8 kB / 499.4 MB, free: 1.637 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1288, allocations: 243.5 kB / 499.6 MB, free: 1.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.675e-05/0.1288, allocations: 114.4 kB / 499.7 MB, free: 1.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.1289, allocations: 16 kB / 499.8 MB, free: 1.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.129, allocations: 342.8 kB / 0.4884 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.1292, allocations: 97.27 kB / 0.4885 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.1296, allocations: 428.8 kB / 0.4889 GB, free: 256 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.1299, allocations: 175.8 kB / 0.489 GB, free: 80 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1299, allocations: 4 kB / 0.489 GB, free: 76 kB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.2059/0.3358, allocations: 0.5193 MB / 0.4896 GB, free: 42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.3359, allocations: 10.59 kB / 0.4896 GB, free: 42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.3359, allocations: 12.06 kB / 0.4896 GB, free: 42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.618e-05/0.336, allocations: 17 kB / 0.4896 GB, free: 42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.3364, allocations: 154.5 kB / 0.4897 GB, free: 41.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.3365, allocations: 23.31 kB / 0.4898 GB, free: 41.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.3368, allocations: 69.25 kB / 0.4898 GB, free: 41.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.3368, allocations: 31.53 kB / 0.4899 GB, free: 41.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.337, allocations: 184.1 kB / 0.49 GB, free: 41.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.3372, allocations: 30.75 kB / 0.4901 GB, free: 41.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.329e-05/0.3373, allocations: 34.12 kB / 0.4901 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.3373, allocations: 5.719 kB / 0.4901 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.3373, allocations: 2.094 kB / 0.4901 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3373, allocations: 3.938 kB / 0.4901 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.3385, allocations: 0.6469 MB / 0.4907 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3385, allocations: 5.406 kB / 0.4907 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.339, allocations: 88.44 kB / 0.4908 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.339, allocations: 3.094 kB / 0.4908 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.339, allocations: 15.59 kB / 0.4908 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.339, allocations: 7.281 kB / 0.4909 GB, free: 41.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.339, allocations: 7.641 kB / 0.4909 GB, free: 41.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006635/0.3397, allocations: 0.8477 MB / 0.4917 GB, free: 40.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3398, allocations: 107 kB / 0.4918 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.251e-05/0.3398, allocations: 11.45 kB / 0.4918 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/0.3401, allocations: 11.77 kB / 0.4918 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.3402, allocations: 23.03 kB / 0.4918 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.3402, allocations: 8.984 kB / 0.4918 GB, free: 40.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.3404, allocations: 181.6 kB / 0.492 GB, free: 40.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3404, allocations: 3.969 kB / 0.492 GB, free: 40.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006726/0.3411, allocations: 102.9 kB / 0.4921 GB, free: 40.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00011/0.3412, allocations: 104.1 kB / 0.4922 GB, free: 40.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.3418, allocations: 295 kB / 0.4925 GB, free: 40.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3418, allocations: 1.094 kB / 0.4925 GB, free: 40.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.342, allocations: 97.11 kB / 0.4926 GB, free: 40.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.3429, allocations: 72.28 kB / 0.4927 GB, free: 40.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.3452, allocations: 1.918 MB / 0.4945 GB, free: 39.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.3455, allocations: 0.798 MB / 0.4953 GB, free: 38.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.3456, allocations: 31.62 kB / 0.4953 GB, free: 38.45 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3456, allocations: 4 kB / 0.4953 GB, free: 38.45 MB / 378.7 MB Notification: Performance of Templates: time 0.006463/0.352, allocations: 4.033 MB / 0.4993 GB, free: 38.12 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches