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.00105/0.00105, allocations: 179.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.243/1.243, allocations: 221.3 MB / 236 MB, free: 2.938 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.0008533/0.0008532, allocations: 90.67 kB / 287 MB, free: 236 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.1979/0.1979, allocations: 44.14 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.904e-05/2.908e-05, allocations: 4.219 kB / 451.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1167, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4613, allocations: 87.39 MB / 0.587 GB, free: 1.926 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.4615, allocations: 67.97 kB / 0.5871 GB, free: 1.859 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006403/0.4679, allocations: 2.597 MB / 0.5896 GB, free: 15.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4679, allocations: 0 / 0.5896 GB, free: 15.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.468, allocations: 0 / 0.5896 GB, free: 15.27 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.000405/0.4684, allocations: 398.2 kB / 0.59 GB, free: 14.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.4684, allocations: 12.03 kB / 0.59 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.4685, allocations: 15.81 kB / 0.59 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.4687, allocations: 198.8 kB / 0.5902 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.4687, allocations: 15.95 kB / 0.5903 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.4688, allocations: 16 kB / 0.5903 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.469, allocations: 117.6 kB / 0.5904 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.469, allocations: 0 / 0.5904 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.4691, allocations: 8 kB / 0.5904 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4691, allocations: 3.984 kB / 0.5904 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.4692, allocations: 67.98 kB / 0.5905 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006282/0.4698, allocations: 480.1 kB / 0.5909 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.47, allocations: 106.5 kB / 0.591 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.156e-05/0.4701, allocations: 52.84 kB / 0.5911 GB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.4701, allocations: 8 kB / 0.5911 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.4702, allocations: 34.56 kB / 0.5911 GB, free: 13.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.4702, allocations: 3.938 kB / 0.5911 GB, free: 13.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001157/0.4713, allocations: 0.7545 MB / 0.5918 GB, free: 12.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.4714, allocations: 55.41 kB / 0.5919 GB, free: 12.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.4715, allocations: 126.5 kB / 0.592 GB, free: 12.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.4715, allocations: 29.7 kB / 0.5921 GB, free: 12.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.4716, allocations: 108.3 kB / 0.5922 GB, free: 12.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.4716, allocations: 71 kB / 0.5922 GB, free: 12.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.4717, allocations: 4 kB / 0.5922 GB, free: 12.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4718, allocations: 322.8 kB / 0.5925 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.78e-05/0.4718, allocations: 40.38 kB / 0.5926 GB, free: 11.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.768e-05/0.4719, allocations: 75.27 kB / 0.5926 GB, free: 11.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.676e-05/0.472, allocations: 51.92 kB / 0.5927 GB, free: 11.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.472, allocations: 4 kB / 0.5927 GB, free: 11.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003016/0.4723, allocations: 200.6 kB / 0.5929 GB, free: 11.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.4724, allocations: 4 kB / 0.5929 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.4724, allocations: 4.031 kB / 0.5929 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/0.4725, allocations: 44.83 kB / 0.5929 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.4727, allocations: 31.98 kB / 0.593 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.4739, allocations: 1.554 MB / 0.5945 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.474e-05/0.474, allocations: 8 kB / 0.5945 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.474, allocations: 4 kB / 0.5945 GB, free: 9.844 MB / 410.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 () * 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 7.491e-05/0.4741, allocations: 116.9 kB / 0.5946 GB, free: 9.723 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.4741, allocations: 19.81 kB / 0.5946 GB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.4742, allocations: 20.75 kB / 0.5946 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4742, allocations: 0 / 0.5946 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4742, allocations: 7.953 kB / 0.5947 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4742, allocations: 0 / 0.5947 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.4748, allocations: 0.5399 MB / 0.5952 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.4749, allocations: 0 / 0.5952 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.475, allocations: 43.91 kB / 0.5952 GB, free: 9.031 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.082e-05/0.4751, allocations: 28.84 kB / 0.5953 GB, free: 9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.4752, allocations: 4 kB / 0.5953 GB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008861/0.476, allocations: 1.371 MB / 0.5966 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4761, allocations: 8.016 kB / 0.5966 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000373/0.4764, allocations: 342.4 kB / 0.5969 GB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.4765, allocations: 93 kB / 0.597 GB, free: 7.016 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.4765, allocations: 3.953 kB / 0.597 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.4766, allocations: 8 kB / 0.597 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.4767, allocations: 11.98 kB / 0.597 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.4767, allocations: 11.98 kB / 0.5971 GB, free: 6.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.4768, allocations: 105.6 kB / 0.5972 GB, free: 6.879 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4768, allocations: 4.062 kB / 0.5972 GB, free: 6.875 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002848/0.4771, allocations: 40 kB / 0.5972 GB, free: 6.836 MB / 410.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 () * 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.0001087/0.4772, allocations: 103.2 kB / 0.5973 GB, free: 6.727 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.4775, allocations: 242.5 kB / 0.5975 GB, free: 6.477 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4776, allocations: 4 kB / 0.5975 GB, free: 6.473 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.4778, allocations: 198.5 kB / 0.5977 GB, free: 6.266 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.478, allocations: 15.89 kB / 0.5977 GB, free: 6.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000519/0.4785, allocations: 324.9 kB / 0.598 GB, free: 5.906 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.4788, allocations: 0.7246 MB / 0.5987 GB, free: 5.152 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.607e-05/0.4788, allocations: 13.2 kB / 0.5988 GB, free: 5.141 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.4788, allocations: 19.44 kB / 0.5988 GB, free: 5.121 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4789, allocations: 0 / 0.5988 GB, free: 5.121 MB / 410.7 MB Notification: Performance of Templates: time 0.003693/0.4826, allocations: 1.451 MB / 0.6002 GB, free: 3.676 MB / 410.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/jenkins/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