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.001027/0.001026, allocations: 179.6 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.495/1.495, allocations: 205.4 MB / 222.5 MB, free: 9.035 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.0008069/0.0008068, allocations: 83.86 kB / 270.9 MB, free: 8.352 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.4117/0.4117, allocations: 43.56 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003991, allocations: 16 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1367, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002953/0.1397, allocations: 2.396 MB / 492.6 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.141, allocations: 0.7295 MB / 493.4 MB, free: 8.074 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.1412, allocations: 8 kB / 493.4 MB, free: 8.066 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.1414, allocations: 51.56 kB / 493.4 MB, free: 8.016 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.1416, allocations: 99.16 kB / 493.5 MB, free: 7.918 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.1419, allocations: 71.92 kB / 493.6 MB, free: 7.848 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.1425, allocations: 406.5 kB / 494 MB, free: 7.445 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.1428, allocations: 141.4 kB / 494.1 MB, free: 7.301 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002845/0.1431, allocations: 139.4 kB / 494.3 MB, free: 7.164 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.1434, allocations: 159.2 kB / 494.4 MB, free: 7.008 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.1434, allocations: 23.94 kB / 494.4 MB, free: 6.984 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.317e-05/0.1435, allocations: 20 kB / 494.5 MB, free: 6.965 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.324e-05/0.1436, allocations: 59.77 kB / 494.5 MB, free: 6.906 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.978e-05/0.1437, allocations: 97.52 kB / 494.6 MB, free: 6.805 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.144, allocations: 323.3 kB / 494.9 MB, free: 6.488 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.144, allocations: 7.922 kB / 494.9 MB, free: 6.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.144, allocations: 3.938 kB / 494.9 MB, free: 6.477 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.144, allocations: 0 / 494.9 MB, free: 6.477 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.0009083/0.145, allocations: 0.6117 MB / 495.5 MB, free: 5.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.145, allocations: 12.02 kB / 495.6 MB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.1451, allocations: 43.53 kB / 495.6 MB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.1454, allocations: 279.3 kB / 495.9 MB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.1455, allocations: 29 kB / 495.9 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.1455, allocations: 47.89 kB / 495.9 MB, free: 5.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007069/0.1463, allocations: 381 kB / 496.3 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.1463, allocations: 0 / 496.3 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.1463, allocations: 27.88 kB / 496.3 MB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1464, allocations: 8 kB / 496.4 MB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.1469, allocations: 259.8 kB / 496.6 MB, free: 4.695 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.1487, allocations: 1.117 MB / 497.7 MB, free: 3.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.1493, allocations: 352 kB / 498.1 MB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.1496, allocations: 194.7 kB / 498.3 MB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.1496, allocations: 4 kB / 498.3 MB, free: 2.945 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.1497, allocations: 38.5 kB / 498.3 MB, free: 2.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 1.863e-06/0.1497, allocations: 0 / 498.3 MB, free: 2.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003785/0.1535, allocations: 2.47 MB / 0.489 GB, free: 164 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.1536, allocations: 110.8 kB / 0.4891 GB, free: 28 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2022/0.3557, allocations: 237.4 kB / 0.4894 GB, free: 43.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.3559, allocations: 37.61 kB / 0.4894 GB, free: 43.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.356, allocations: 178.7 kB / 0.4896 GB, free: 43.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3561, allocations: 205.7 kB / 0.4898 GB, free: 43.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/0.3561, allocations: 9.812 kB / 0.4898 GB, free: 43.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3562, allocations: 345.7 kB / 0.4901 GB, free: 42.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.3566, allocations: 136.5 kB / 0.4902 GB, free: 42.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000372/0.357, allocations: 235 kB / 0.4905 GB, free: 42.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.3573, allocations: 165.1 kB / 0.4906 GB, free: 42.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3573, allocations: 1.969 kB / 0.4906 GB, free: 42.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00103/0.3584, allocations: 0.5617 MB / 0.4912 GB, free: 42.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3584, allocations: 5.25 kB / 0.4912 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3584, allocations: 3.703 kB / 0.4912 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003715/0.3588, allocations: 128 kB / 0.4913 GB, free: 42.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.3592, allocations: 97.75 kB / 0.4914 GB, free: 42.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003063/0.3623, allocations: 4.668 MB / 0.496 GB, free: 38.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.3625, allocations: 27.69 kB / 0.496 GB, free: 38.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.207e-05/0.3626, allocations: 18 kB / 0.496 GB, free: 38.56 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.0001734/0.3628, allocations: 172.8 kB / 0.4962 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.151e-05/0.3629, allocations: 39.7 kB / 0.4962 GB, free: 38.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.444e-05/0.3629, allocations: 45.67 kB / 0.4962 GB, free: 38.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.363, allocations: 7.594 kB / 0.4962 GB, free: 38.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.363, allocations: 7.656 kB / 0.4963 GB, free: 38.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.363, allocations: 5.281 kB / 0.4963 GB, free: 38.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.3649, allocations: 1.339 MB / 0.4976 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3649, allocations: 2.75 kB / 0.4976 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004188/0.3654, allocations: 99.75 kB / 0.4977 GB, free: 37.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002602/0.3656, allocations: 96.95 kB / 0.4978 GB, free: 37.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.3657, allocations: 12.92 kB / 0.4978 GB, free: 37.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002262/0.3679, allocations: 4.102 MB / 0.5018 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.368, allocations: 5.453 kB / 0.5018 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.3692, allocations: 0.936 MB / 0.5027 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.3693, allocations: 117.2 kB / 0.5028 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.3693, allocations: 11.05 kB / 0.5028 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.3696, allocations: 20.47 kB / 0.5028 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.724e-05/0.3697, allocations: 49 kB / 0.5029 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.3697, allocations: 16.55 kB / 0.5029 GB, free: 33.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001578/0.3699, allocations: 171.7 kB / 0.5031 GB, free: 33.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3699, allocations: 0 / 0.5031 GB, free: 33.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006465/0.3706, allocations: 124.3 kB / 0.5032 GB, free: 33.43 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.000116/0.3707, allocations: 108.1 kB / 0.5033 GB, free: 33.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3718, allocations: 0.7687 MB / 0.504 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3718, allocations: 1.031 kB / 0.504 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.3725, allocations: 0.5849 MB / 0.5046 GB, free: 32.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.3731, allocations: 68.41 kB / 0.5047 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3747, allocations: 1.334 MB / 0.506 GB, free: 31.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.375, allocations: 0.8254 MB / 0.5068 GB, free: 30.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.956e-05/0.375, allocations: 31.5 kB / 0.5068 GB, free: 30.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.412e-06/0.3751, allocations: 0 / 0.5068 GB, free: 30.76 MB / 378.7 MB Notification: Performance of Templates: time 0.008932/0.384, allocations: 9.231 MB / 0.5158 GB, free: 29.98 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