Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 183.2 kB / 18.09 MB, free: 3.625 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.386/1.386, allocations: 223.3 MB / 242.1 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009413/0.0009413, allocations: 91.2 kB / 293.3 MB, free: 10.75 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3207/0.3207, allocations: 44.14 MB / 388.5 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 12 kB / 461.1 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4104, allocations: 61.89 MB / 0.5107 GB, free: 38.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.5313, allocations: 87.48 MB / 0.5962 GB, free: 7.586 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.5316, allocations: 71.95 kB / 0.5962 GB, free: 7.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006778/0.5384, allocations: 2.581 MB / 0.5987 GB, free: 4.934 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5385, allocations: 0 / 0.5987 GB, free: 4.934 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.5385, allocations: 4 kB / 0.5987 GB, free: 4.93 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005834/0.5391, allocations: 419 kB / 0.5991 GB, free: 4.469 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.5392, allocations: 8.031 kB / 0.5992 GB, free: 4.461 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.5392, allocations: 16.75 kB / 0.5992 GB, free: 4.445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.5394, allocations: 208.1 kB / 0.5994 GB, free: 4.203 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.5395, allocations: 8.375 kB / 0.5994 GB, free: 4.195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.373e-05/0.5395, allocations: 12.38 kB / 0.5994 GB, free: 4.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.5398, allocations: 133.1 kB / 0.5995 GB, free: 4.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.5398, allocations: 4.125 kB / 0.5995 GB, free: 4.047 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.5398, allocations: 11.94 kB / 0.5995 GB, free: 4.035 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5398, allocations: 0 / 0.5995 GB, free: 4.035 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.54, allocations: 87.94 kB / 0.5996 GB, free: 3.949 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006598/0.5407, allocations: 472.1 kB / 0.6001 GB, free: 3.438 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.5409, allocations: 118.4 kB / 0.6002 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.5411, allocations: 64.83 kB / 0.6002 GB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.5411, allocations: 0 / 0.6002 GB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.5411, allocations: 46.5 kB / 0.6003 GB, free: 3.191 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.5411, allocations: 0 / 0.6003 GB, free: 3.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001529/0.5427, allocations: 0.8194 MB / 0.6011 GB, free: 2.281 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.5427, allocations: 51.41 kB / 0.6011 GB, free: 2.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.5429, allocations: 137.2 kB / 0.6013 GB, free: 2.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.5429, allocations: 33.7 kB / 0.6013 GB, free: 2.035 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.543, allocations: 112.3 kB / 0.6014 GB, free: 1.922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.68e-05/0.5431, allocations: 71.08 kB / 0.6015 GB, free: 1.852 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.5431, allocations: 0 / 0.6015 GB, free: 1.852 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5432, allocations: 326.8 kB / 0.6018 GB, free: 1.523 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.742e-05/0.5433, allocations: 39.98 kB / 0.6018 GB, free: 1.484 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.5434, allocations: 84.91 kB / 0.6019 GB, free: 1.391 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.5436, allocations: 143.3 kB / 0.602 GB, free: 1.238 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.5437, allocations: 0 / 0.602 GB, free: 1.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003509/0.544, allocations: 214.1 kB / 0.6022 GB, free: 1.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.544, allocations: 8 kB / 0.6023 GB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5441, allocations: 0 / 0.6023 GB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.5442, allocations: 36.84 kB / 0.6023 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.5444, allocations: 43.84 kB / 0.6023 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.5457, allocations: 1.553 MB / 0.6038 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.5458, allocations: 8.031 kB / 0.6039 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.5458, allocations: 4 kB / 0.6039 GB, free: 15.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.5459, allocations: 133.8 kB / 0.604 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.609e-05/0.546, allocations: 11.91 kB / 0.604 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/0.546, allocations: 17.19 kB / 0.604 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.546, allocations: 4 kB / 0.604 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.5461, allocations: 7.922 kB / 0.604 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5461, allocations: 3.938 kB / 0.604 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007244/0.5468, allocations: 0.5593 MB / 0.6046 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5468, allocations: 0 / 0.6046 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.547, allocations: 35.92 kB / 0.6046 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.93e-05/0.5471, allocations: 40.81 kB / 0.6046 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.5471, allocations: 3.984 kB / 0.6047 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.5481, allocations: 1.37 MB / 0.606 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5482, allocations: 4.062 kB / 0.606 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005074/0.5487, allocations: 354.4 kB / 0.6063 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.5487, allocations: 92.86 kB / 0.6064 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.5488, allocations: 4.062 kB / 0.6064 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.5489, allocations: 8 kB / 0.6064 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.5489, allocations: 19.97 kB / 0.6064 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.5489, allocations: 4 kB / 0.6065 GB, free: 12.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.633e-05/0.549, allocations: 101.7 kB / 0.6066 GB, free: 12.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.549, allocations: 4 kB / 0.6066 GB, free: 12.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003242/0.5494, allocations: 40 kB / 0.6066 GB, free: 12.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001527/0.5495, allocations: 107.2 kB / 0.6067 GB, free: 12.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.55, allocations: 254.5 kB / 0.6069 GB, free: 11.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.55, allocations: 0 / 0.6069 GB, free: 11.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.5503, allocations: 202.7 kB / 0.6071 GB, free: 11.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.5507, allocations: 19.94 kB / 0.6071 GB, free: 11.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008944/0.5516, allocations: 0.5215 MB / 0.6077 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.5519, allocations: 0.7207 MB / 0.6084 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.784e-05/0.552, allocations: 17.41 kB / 0.6084 GB, free: 10.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/0.552, allocations: 11.44 kB / 0.6084 GB, free: 10.24 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.552, allocations: 4 kB / 0.6084 GB, free: 10.24 MB / 426.7 MB Notification: Performance of Templates: time 0.004299/0.5563, allocations: 1.469 MB / 0.6098 GB, free: 8.777 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches