Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009725/0.0009723, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 221.3 MB / 236 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000785/0.000785, allocations: 94.91 kB / 287 MB, free: 228 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1828/0.1828, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.331e-05, allocations: 4.219 kB / 451.8 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 61.92 MB / 0.5017 GB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3789/0.4853, allocations: 87.98 MB / 0.5876 GB, free: 1.293 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.4855, allocations: 72.45 kB / 0.5877 GB, free: 1.223 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01586/0.5014, allocations: 6.452 MB / 0.594 GB, free: 10.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.582e-06/0.5014, allocations: 0 / 0.594 GB, free: 10.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.5014, allocations: 8 kB / 0.594 GB, free: 10.73 MB / 410.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.0007411/0.5022, allocations: 0.5766 MB / 0.5946 GB, free: 10.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.5022, allocations: 8.031 kB / 0.5946 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.5023, allocations: 39.53 kB / 0.5946 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.5026, allocations: 283.2 kB / 0.5949 GB, free: 9.742 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.5026, allocations: 32.78 kB / 0.5949 GB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.175e-05/0.5027, allocations: 43.91 kB / 0.5949 GB, free: 9.668 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.5032, allocations: 346.3 kB / 0.5953 GB, free: 9.316 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.5033, allocations: 8 kB / 0.5953 GB, free: 9.309 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.5033, allocations: 12 kB / 0.5953 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.5033, allocations: 12 kB / 0.5953 GB, free: 9.285 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.5037, allocations: 218.8 kB / 0.5955 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.505, allocations: 1.101 MB / 0.5966 GB, free: 7.914 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004204/0.5055, allocations: 339.4 kB / 0.5969 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.5057, allocations: 158.6 kB / 0.5971 GB, free: 7.391 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.5057, allocations: 8 kB / 0.5971 GB, free: 7.383 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.5058, allocations: 42.5 kB / 0.5971 GB, free: 7.332 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.643e-06/0.5058, allocations: 0 / 0.5971 GB, free: 7.332 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.002902/0.5087, allocations: 2.271 MB / 0.5993 GB, free: 4.797 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.5088, allocations: 110.8 kB / 0.5994 GB, free: 4.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.509, allocations: 203 kB / 0.5996 GB, free: 4.453 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.5091, allocations: 37.7 kB / 0.5997 GB, free: 4.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.5092, allocations: 180.6 kB / 0.5998 GB, free: 4.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.5093, allocations: 197.1 kB / 0.6 GB, free: 4.035 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.5093, allocations: 8 kB / 0.6 GB, free: 4.027 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5095, allocations: 346.8 kB / 0.6004 GB, free: 3.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.5096, allocations: 113.1 kB / 0.6005 GB, free: 3.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.5099, allocations: 211.8 kB / 0.6007 GB, free: 3.328 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.5101, allocations: 162.6 kB / 0.6008 GB, free: 3.176 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5101, allocations: 0 / 0.6008 GB, free: 3.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007817/0.5109, allocations: 0.5114 MB / 0.6013 GB, free: 2.648 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5109, allocations: 12.09 kB / 0.6013 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.511, allocations: 0 / 0.6013 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000335/0.5113, allocations: 126.5 kB / 0.6015 GB, free: 2.504 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.5117, allocations: 103.8 kB / 0.6016 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/0.5152, allocations: 4.669 MB / 0.6061 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.5154, allocations: 20 kB / 0.6061 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.5155, allocations: 20 kB / 0.6062 GB, free: 13.3 MB / 426.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 () * 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.0001317/0.5156, allocations: 143.2 kB / 0.6063 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.042e-05/0.5157, allocations: 35.62 kB / 0.6063 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.5158, allocations: 49.89 kB / 0.6064 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.5158, allocations: 8 kB / 0.6064 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.5159, allocations: 7.953 kB / 0.6064 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.5159, allocations: 0 / 0.6064 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.5176, allocations: 1.297 MB / 0.6077 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5177, allocations: 0 / 0.6077 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.5181, allocations: 99.88 kB / 0.6078 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002541/0.5183, allocations: 102.5 kB / 0.6079 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.5184, allocations: 15.98 kB / 0.6079 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.5212, allocations: 4.093 MB / 0.6119 GB, free: 6.961 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.5212, allocations: 4.031 kB / 0.6119 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.5223, allocations: 0.948 MB / 0.6128 GB, free: 5.945 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.5224, allocations: 108.8 kB / 0.6129 GB, free: 5.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.5225, allocations: 15.95 kB / 0.6129 GB, free: 5.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.5227, allocations: 16 kB / 0.6129 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.5228, allocations: 51.88 kB / 0.613 GB, free: 5.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.5229, allocations: 19.98 kB / 0.613 GB, free: 5.719 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001527/0.523, allocations: 167.1 kB / 0.6132 GB, free: 5.551 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.523, allocations: 0 / 0.6132 GB, free: 5.551 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007033/0.5237, allocations: 124 kB / 0.6133 GB, free: 5.43 MB / 426.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 () * 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.000162/0.5239, allocations: 115.3 kB / 0.6134 GB, free: 5.309 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.5249, allocations: 0.7304 MB / 0.6141 GB, free: 4.539 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5249, allocations: 0 / 0.6141 GB, free: 4.539 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006056/0.5255, allocations: 0.5518 MB / 0.6146 GB, free: 3.949 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.526, allocations: 50.36 kB / 0.6147 GB, free: 3.902 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.5274, allocations: 0.9215 MB / 0.6156 GB, free: 2.945 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.5278, allocations: 0.8242 MB / 0.6164 GB, free: 2.094 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.5279, allocations: 35.27 kB / 0.6164 GB, free: 2.059 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.373e-05/0.528, allocations: 31.38 kB / 0.6165 GB, free: 2.027 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.528, allocations: 4 kB / 0.6165 GB, free: 2.023 MB / 426.7 MB Notification: Performance of Templates: time 0.008185/0.5362, allocations: 4.034 MB / 0.6204 GB, free: 14 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches