Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.088e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4403/0.4403, allocations: 47.57 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1583/0.5986, allocations: 94.1 MB / 456.4 MB, free: 8.199 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.599, allocations: 79.94 kB / 456.5 MB, free: 8.121 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1906/0.7897, allocations: 44.1 MB / 0.4889 GB, free: 11.82 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.7897, allocations: 0 / 0.4889 GB, free: 11.82 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.7899, allocations: 32 kB / 0.4889 GB, free: 11.79 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004371/0.7942, allocations: 1.605 MB / 0.4905 GB, free: 10.14 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.7943, allocations: 16.02 kB / 0.4905 GB, free: 10.12 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/0.7958, allocations: 285.8 kB / 0.4908 GB, free: 9.84 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003734/0.7995, allocations: 1.192 MB / 0.4919 GB, free: 8.59 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.813e-05/0.7996, allocations: 52 kB / 0.492 GB, free: 8.539 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.7999, allocations: 103.9 kB / 0.4921 GB, free: 8.438 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002756/0.8027, allocations: 0.8731 MB / 0.4929 GB, free: 7.562 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003287/0.806, allocations: 1.209 MB / 0.4941 GB, free: 6.293 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-05/0.8061, allocations: 7.906 kB / 0.4941 GB, free: 6.285 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.8063, allocations: 4 kB / 0.4941 GB, free: 6.281 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.881e-05/0.8063, allocations: 36 kB / 0.4942 GB, free: 6.246 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3074/1.114, allocations: 6.113 MB / 0.5001 GB, free: 100.9 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/1.116, allocations: 0.5284 MB / 0.5007 GB, free: 100.8 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/1.117, allocations: 394.4 kB / 0.501 GB, free: 100.8 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-05/1.117, allocations: 9.531 kB / 0.501 GB, free: 100.8 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.117, allocations: 41.05 kB / 0.5011 GB, free: 100.8 MB / 395.1 MB Notification: Performance of pre-optimization done (n=66): time 3.666e-06/1.117, allocations: 0 / 0.5011 GB, free: 100.8 MB / 395.1 MB Notification: Performance of matching and sorting (n=72): time 0.005394/1.123, allocations: 1.665 MB / 0.5027 GB, free: 100.3 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/1.123, allocations: 113.1 kB / 0.5028 GB, free: 100.2 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/1.125, allocations: 0.8968 MB / 0.5037 GB, free: 100.1 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/1.125, allocations: 28.52 kB / 0.5037 GB, free: 100 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007217/1.126, allocations: 0.8515 MB / 0.5045 GB, free: 99.65 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/1.127, allocations: 248.8 kB / 0.5048 GB, free: 99.52 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/1.127, allocations: 1.531 kB / 0.5048 GB, free: 99.52 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/1.127, allocations: 356.4 kB / 0.5051 GB, free: 99.21 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006404/1.127, allocations: 225.2 kB / 0.5053 GB, free: 99.21 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009316/1.128, allocations: 0.6702 MB / 0.506 GB, free: 98.65 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009502/1.129, allocations: 350 kB / 0.5063 GB, free: 98.64 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/1.129, allocations: 5.312 kB / 0.5063 GB, free: 98.64 MB / 395.1 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003057/1.132, allocations: 0.9942 MB / 0.5073 GB, free: 98.54 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.336e-05/1.132, allocations: 12.59 kB / 0.5073 GB, free: 98.54 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.565e-05/1.133, allocations: 15.31 kB / 0.5073 GB, free: 98.54 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006381/1.133, allocations: 121.7 kB / 0.5074 GB, free: 98.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/1.135, allocations: 263.3 kB / 0.5077 GB, free: 98.52 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004142/1.139, allocations: 4.06 MB / 0.5117 GB, free: 94.86 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/1.141, allocations: 40.38 kB / 0.5117 GB, free: 94.85 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003003/1.141, allocations: 59.73 kB / 0.5118 GB, free: 94.85 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00041/1.142, allocations: 146.7 kB / 0.5119 GB, free: 94.74 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004931/1.142, allocations: 128.2 kB / 0.512 GB, free: 94.68 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/1.145, allocations: 0.7148 MB / 0.5127 GB, free: 94.57 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/1.145, allocations: 7.469 kB / 0.5127 GB, free: 94.57 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/1.145, allocations: 2.188 kB / 0.5127 GB, free: 94.57 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/1.145, allocations: 4.031 kB / 0.5127 GB, free: 94.57 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006613/1.152, allocations: 2.009 MB / 0.5147 GB, free: 94.13 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.152, allocations: 4.047 kB / 0.5147 GB, free: 94.13 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/1.153, allocations: 133.2 kB / 0.5148 GB, free: 94.13 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006648/1.154, allocations: 115.5 kB / 0.5149 GB, free: 94.11 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/1.154, allocations: 9.562 kB / 0.5149 GB, free: 94.11 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004215/1.158, allocations: 4.181 MB / 0.519 GB, free: 90.44 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.22e-05/1.158, allocations: 6.281 kB / 0.519 GB, free: 90.44 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/1.161, allocations: 1.355 MB / 0.5204 GB, free: 89.82 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009866/1.162, allocations: 267.8 kB / 0.5206 GB, free: 89.66 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002983/1.163, allocations: 9.125 kB / 0.5206 GB, free: 89.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.164, allocations: 33.09 kB / 0.5206 GB, free: 89.66 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/1.164, allocations: 63.81 kB / 0.5207 GB, free: 89.66 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/1.164, allocations: 27.33 kB / 0.5207 GB, free: 89.66 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001646/1.166, allocations: 0.6564 MB / 0.5214 GB, free: 89.55 MB / 395.1 MB Notification: Performance of sort global known variables: time 9.02e-07/1.166, allocations: 0.9375 kB / 0.5214 GB, free: 89.55 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002523/1.168, allocations: 307 kB / 0.5217 GB, free: 89.55 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000831/1.169, allocations: 345.8 kB / 0.522 GB, free: 89.45 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002595/1.172, allocations: 0.9835 MB / 0.523 GB, free: 89.14 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.172, allocations: 0 / 0.523 GB, free: 89.14 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/1.173, allocations: 0.6336 MB / 0.5236 GB, free: 88.82 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/1.177, allocations: 294.2 kB / 0.5239 GB, free: 88.82 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/1.184, allocations: 2.307 MB / 0.5261 GB, free: 87.93 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009671/1.185, allocations: 1.242 MB / 0.5273 GB, free: 87.2 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005549/1.186, allocations: 93.33 kB / 0.5274 GB, free: 87.19 MB / 395.1 MB Notification: Performance of SimCode: time 1.172e-06/1.186, allocations: 3.062 kB / 0.5274 GB, free: 87.19 MB / 395.1 MB Notification: Performance of Templates: time 0.06195/1.248, allocations: 38.83 MB / 0.5653 GB, free: 71.76 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches