Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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) 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(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 221.5 MB / 230.3 MB, free: 7.535 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.0008223/0.0008219, allocations: 91.61 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.556e-05/1.558e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08301/0.08304, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.31/0.3931, allocations: 115.5 MB / 0.4912 GB, free: 11.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.3934, allocations: 89.86 kB / 0.4913 GB, free: 11.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09626/0.4897, allocations: 38.86 MB / 0.5292 GB, free: 4.152 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4897, allocations: 0 / 0.5292 GB, free: 4.152 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001787/0.4899, allocations: 40.12 kB / 0.5292 GB, free: 4.113 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004084/0.494, allocations: 1.53 MB / 0.5307 GB, free: 2.531 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.4941, allocations: 11.97 kB / 0.5307 GB, free: 2.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/0.4952, allocations: 245.6 kB / 0.531 GB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.4976, allocations: 1.059 MB / 0.532 GB, free: 1.172 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.753e-05/0.4977, allocations: 48 kB / 0.5321 GB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002932/0.498, allocations: 87.91 kB / 0.5321 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001853/0.4998, allocations: 0.7948 MB / 0.5329 GB, free: 248 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.5021, allocations: 1.152 MB / 0.534 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/0.5022, allocations: 4 kB / 0.534 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.985e-05/0.5023, allocations: 0 / 0.534 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.5023, allocations: 40 kB / 0.5341 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009065/0.5114, allocations: 5.943 MB / 0.5399 GB, free: 8.758 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.5125, allocations: 0.6104 MB / 0.5405 GB, free: 8.102 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.5128, allocations: 194 kB / 0.5407 GB, free: 7.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.5129, allocations: 16.36 kB / 0.5407 GB, free: 7.891 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.5129, allocations: 39 kB / 0.5407 GB, free: 7.844 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.554e-06/0.513, allocations: 0 / 0.5407 GB, free: 7.844 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.002336/0.5153, allocations: 1.265 MB / 0.542 GB, free: 6.523 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.5154, allocations: 81.55 kB / 0.542 GB, free: 6.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.5167, allocations: 0.8125 MB / 0.5428 GB, free: 5.598 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.5167, allocations: 25.7 kB / 0.5429 GB, free: 5.566 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/0.5173, allocations: 0.8089 MB / 0.5436 GB, free: 4.746 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.5174, allocations: 197.1 kB / 0.5438 GB, free: 4.551 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.5175, allocations: 0 / 0.5438 GB, free: 4.551 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.5176, allocations: 345.9 kB / 0.5442 GB, free: 4.207 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.5179, allocations: 194.6 kB / 0.5443 GB, free: 4.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005166/0.5184, allocations: 0.5632 MB / 0.5449 GB, free: 3.273 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004487/0.5189, allocations: 293.9 kB / 0.5452 GB, free: 2.984 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.5189, allocations: 4 kB / 0.5452 GB, free: 2.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001346/0.5203, allocations: 0.8149 MB / 0.546 GB, free: 2.156 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1901/0.7104, allocations: 5.136 MB / 0.551 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.275e-05/0.7105, allocations: 15.22 kB / 0.551 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002051/0.7107, allocations: 40.36 kB / 0.551 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009326/0.7116, allocations: 233.8 kB / 0.5513 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007709/0.7124, allocations: 1.245 MB / 0.5525 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009529/0.7134, allocations: 32.91 kB / 0.5525 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.7136, allocations: 46.22 kB / 0.5526 GB, free: 106 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.817e-06/0.7136, allocations: 5.906 kB / 0.5526 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001339/0.7149, allocations: 0.6603 MB / 0.5532 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.104e-05/0.715, allocations: 13.28 kB / 0.5532 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001146/0.7151, allocations: 41.59 kB / 0.5533 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007302/0.7158, allocations: 218.2 kB / 0.5535 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006514/0.7165, allocations: 1.25 MB / 0.5547 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007799/0.7173, allocations: 20.05 kB / 0.5547 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.7174, allocations: 45.16 kB / 0.5548 GB, free: 104.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002147/0.7176, allocations: 142.7 kB / 0.5549 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000254/0.7179, allocations: 107.4 kB / 0.555 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009074/0.7188, allocations: 472.5 kB / 0.5554 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.7188, allocations: 6.375 kB / 0.5554 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.7188, allocations: 0.7031 kB / 0.5554 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.7188, allocations: 6.062 kB / 0.5555 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.7218, allocations: 1.56 MB / 0.557 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.7218, allocations: 2.219 kB / 0.557 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005504/0.7224, allocations: 114.9 kB / 0.5571 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.7225, allocations: 23.02 kB / 0.5571 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.7225, allocations: 8.797 kB / 0.5571 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006753/0.7232, allocations: 1.226 MB / 0.5583 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.7232, allocations: 2.062 kB / 0.5583 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.7245, allocations: 0.8754 MB / 0.5592 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004438/0.725, allocations: 228.5 kB / 0.5594 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.7252, allocations: 4.734 kB / 0.5594 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.7259, allocations: 31.78 kB / 0.5594 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.726, allocations: 43.8 kB / 0.5595 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.726, allocations: 14.03 kB / 0.5595 GB, free: 102.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001113/0.7271, allocations: 0.592 MB / 0.5601 GB, free: 102.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7271, allocations: 3.781 kB / 0.5601 GB, free: 102.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001849/0.729, allocations: 431.8 kB / 0.5605 GB, free: 102.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005808/0.7296, allocations: 369.5 kB / 0.5608 GB, free: 102.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.7316, allocations: 1.115 MB / 0.5619 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.7317, allocations: 1.406 kB / 0.5619 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004598/0.7321, allocations: 302.9 kB / 0.5622 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.7338, allocations: 224.2 kB / 0.5624 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004493/0.7383, allocations: 1.823 MB / 0.5642 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.7395, allocations: 1.208 MB / 0.5654 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001349/0.7409, allocations: 191.9 kB / 0.5656 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.741, allocations: 57.28 kB / 0.5656 GB, free: 100.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/0.741, allocations: 0 / 0.5656 GB, free: 100.7 MB / 426.7 MB Notification: Performance of Templates: time 0.02616/0.7672, allocations: 12.79 MB / 0.5781 GB, free: 99.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches