Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001304/0.001304, allocations: 172.6 kB / 14.1 MB, free: 1.223 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.431/1.431, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.000796/0.000796, allocations: 94.56 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.299e-05, allocations: 7.984 kB / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08246/0.0825, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.3744, allocations: 97.45 MB / 467.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.3747, allocations: 83.7 kB / 467.6 MB, free: 12.08 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07283/0.4476, allocations: 28.18 MB / 495.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4476, allocations: 0.6562 kB / 495.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.115e-05/0.4476, allocations: 31.94 kB / 495.8 MB, free: 0.9414 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00163/0.4493, allocations: 1.107 MB / 496.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.4493, allocations: 8.031 kB / 496.9 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000615/0.45, allocations: 190.4 kB / 497.1 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.4513, allocations: 0.7886 MB / 497.9 MB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/0.4513, allocations: 74 kB / 497.9 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.4515, allocations: 103.9 kB / 498 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.4529, allocations: 0.8958 MB / 498.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.453, allocations: 4 kB / 498.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.781e-05/0.4531, allocations: 40 kB / 499 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.4531, allocations: 24 kB / 499 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.4541, allocations: 0.5897 MB / 499.6 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004601/0.4587, allocations: 3.912 MB / 0.4917 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.4593, allocations: 432.2 kB / 0.4921 GB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.4598, allocations: 245.5 kB / 0.4923 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.4598, allocations: 7.781 kB / 0.4924 GB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.4599, allocations: 38.56 kB / 0.4924 GB, free: 8.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.123e-06/0.4599, allocations: 4 kB / 0.4924 GB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001952/0.4618, allocations: 1.199 MB / 0.4936 GB, free: 6.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.4619, allocations: 81.55 kB / 0.4936 GB, free: 6.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008253/0.4627, allocations: 0.684 MB / 0.4943 GB, free: 6.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.4628, allocations: 37.7 kB / 0.4943 GB, free: 6.027 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000338/0.4631, allocations: 0.5527 MB / 0.4949 GB, free: 5.465 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.4632, allocations: 173.5 kB / 0.4951 GB, free: 5.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.4633, allocations: 16 kB / 0.4951 GB, free: 5.277 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4634, allocations: 337.9 kB / 0.4954 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.4636, allocations: 153.6 kB / 0.4955 GB, free: 4.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.4641, allocations: 449.9 kB / 0.496 GB, free: 4.215 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.4644, allocations: 229.5 kB / 0.4962 GB, free: 3.992 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4644, allocations: 8 kB / 0.4962 GB, free: 3.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001117/0.4656, allocations: 0.7624 MB / 0.4969 GB, free: 3.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.4656, allocations: 8 kB / 0.4969 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4656, allocations: 8 kB / 0.4969 GB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.4659, allocations: 93.97 kB / 0.497 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004984/0.4664, allocations: 159.7 kB / 0.4972 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.4686, allocations: 2.985 MB / 0.5001 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.4692, allocations: 35.98 kB / 0.5001 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.4692, allocations: 32 kB / 0.5002 GB, free: 15.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.4693, allocations: 157.7 kB / 0.5003 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.4695, allocations: 90.91 kB / 0.5004 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008179/0.4703, allocations: 498.5 kB / 0.5009 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4703, allocations: 11.95 kB / 0.5009 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4703, allocations: 0 / 0.5009 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4703, allocations: 3.984 kB / 0.5009 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.4722, allocations: 1.431 MB / 0.5023 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.4722, allocations: 7.984 kB / 0.5023 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.4726, allocations: 76.12 kB / 0.5024 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002277/0.4728, allocations: 81.67 kB / 0.5025 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.4728, allocations: 15.94 kB / 0.5025 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/0.475, allocations: 2.966 MB / 0.5054 GB, free: 9.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.475, allocations: 7.922 kB / 0.5054 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.476, allocations: 0.8555 MB / 0.5062 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.4763, allocations: 192.1 kB / 0.5064 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.4764, allocations: 11.95 kB / 0.5064 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.4768, allocations: 40.03 kB / 0.5064 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.263e-05/0.4769, allocations: 36.05 kB / 0.5065 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.477, allocations: 16 kB / 0.5065 GB, free: 8.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006816/0.4776, allocations: 0.5187 MB / 0.507 GB, free: 8.141 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4777, allocations: 0 / 0.507 GB, free: 8.141 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008873/0.4785, allocations: 244 kB / 0.5072 GB, free: 7.902 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004157/0.479, allocations: 321.7 kB / 0.5075 GB, free: 7.582 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009411/0.4799, allocations: 0.6723 MB / 0.5082 GB, free: 6.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4799, allocations: 0 / 0.5082 GB, free: 6.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005456/0.4805, allocations: 436.9 kB / 0.5086 GB, free: 6.434 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008702/0.4814, allocations: 212 kB / 0.5088 GB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.4835, allocations: 1.264 MB / 0.51 GB, free: 4.914 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.4841, allocations: 1.028 MB / 0.5111 GB, free: 3.859 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.4845, allocations: 103.3 kB / 0.5112 GB, free: 3.754 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.4847, allocations: 59.42 kB / 0.5112 GB, free: 3.695 MB / 394.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4847, allocations: 7.938 kB / 0.5112 GB, free: 3.688 MB / 394.7 MB Notification: Performance of Templates: time 0.01975/0.5044, allocations: 12.29 MB / 0.5232 GB, free: 7.383 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches