Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009092/0.0009093, allocations: 177.1 kB / 8.35 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.27/1.27, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0008234/0.0008235, allocations: 81.98 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.597e-05, allocations: 0 / 337.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09638, allocations: 50.42 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.439, allocations: 116.3 MB / 0.4919 GB, free: 10.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.4392, allocations: 83.95 kB / 0.492 GB, free: 10.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1114/0.5507, allocations: 42.05 MB / 0.5331 GB, free: 188 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5507, allocations: 0 / 0.5331 GB, free: 188 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000107/0.5508, allocations: 40 kB / 0.5331 GB, free: 148 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003341/0.5542, allocations: 1.702 MB / 0.5348 GB, free: 14.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.5543, allocations: 8.031 kB / 0.5348 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.5554, allocations: 269.3 kB / 0.535 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002563/0.558, allocations: 1.154 MB / 0.5362 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.745e-05/0.5581, allocations: 52 kB / 0.5362 GB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/0.5583, allocations: 103.9 kB / 0.5363 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001784/0.5601, allocations: 0.8852 MB / 0.5372 GB, free: 11.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/0.5624, allocations: 1.26 MB / 0.5384 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/0.5625, allocations: 7.906 kB / 0.5384 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.776e-05/0.5626, allocations: 0 / 0.5384 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.255e-05/0.5626, allocations: 48 kB / 0.5385 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009187/0.5718, allocations: 6.451 MB / 0.5448 GB, free: 3.742 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.5733, allocations: 0.8539 MB / 0.5456 GB, free: 2.824 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.5737, allocations: 238.5 kB / 0.5458 GB, free: 2.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.5737, allocations: 4.562 kB / 0.5458 GB, free: 2.586 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.5738, allocations: 43.12 kB / 0.5459 GB, free: 2.531 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 2.745e-06/0.5738, allocations: 0 / 0.5459 GB, free: 2.531 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.002494/0.5763, allocations: 1.443 MB / 0.5473 GB, free: 1.027 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.5763, allocations: 89.62 kB / 0.5474 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.5776, allocations: 0.8985 MB / 0.5482 GB, free: 16 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.215/0.7926, allocations: 25.7 kB / 0.5483 GB, free: 108.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009562/0.7936, allocations: 0.9009 MB / 0.5491 GB, free: 108.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.7939, allocations: 235.5 kB / 0.5494 GB, free: 108.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.396e-05/0.794, allocations: 0 / 0.5494 GB, free: 108.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.7941, allocations: 348 kB / 0.5497 GB, free: 108.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.7946, allocations: 223 kB / 0.5499 GB, free: 108.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/0.7951, allocations: 0.6235 MB / 0.5505 GB, free: 107.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/0.7957, allocations: 328 kB / 0.5508 GB, free: 107.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.7957, allocations: 4.469 kB / 0.5508 GB, free: 107.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001683/0.7974, allocations: 0.9249 MB / 0.5517 GB, free: 107.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009176/0.7983, allocations: 5.327 MB / 0.5569 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.7983, allocations: 14.16 kB / 0.557 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002081/0.7986, allocations: 42.61 kB / 0.557 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009983/0.7996, allocations: 274.7 kB / 0.5573 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00081/0.8004, allocations: 1.258 MB / 0.5585 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009683/0.8014, allocations: 51.11 kB / 0.5585 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-05/0.8015, allocations: 49.05 kB / 0.5586 GB, free: 101 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/0.8015, allocations: 4.469 kB / 0.5586 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001195/0.8027, allocations: 0.7499 MB / 0.5593 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.8027, allocations: 17.59 kB / 0.5593 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.402e-05/0.8028, allocations: 41.2 kB / 0.5594 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008044/0.8036, allocations: 257.7 kB / 0.5596 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005539/0.8042, allocations: 1.242 MB / 0.5608 GB, free: 99.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007822/0.805, allocations: 29.52 kB / 0.5609 GB, free: 99.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.935e-05/0.8051, allocations: 47.34 kB / 0.5609 GB, free: 99.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0002404/0.8053, allocations: 153.9 kB / 0.561 GB, free: 99.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.8055, allocations: 126.2 kB / 0.5612 GB, free: 99.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009956/0.8065, allocations: 0.5346 MB / 0.5617 GB, free: 99.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.8065, allocations: 6.875 kB / 0.5617 GB, free: 99.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.8065, allocations: 0 / 0.5617 GB, free: 99.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.8065, allocations: 4.938 kB / 0.5617 GB, free: 99.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.8091, allocations: 1.76 MB / 0.5634 GB, free: 99.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.8091, allocations: 2.891 kB / 0.5634 GB, free: 99.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006361/0.8098, allocations: 140.8 kB / 0.5636 GB, free: 99.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.832e-05/0.8099, allocations: 24.5 kB / 0.5636 GB, free: 99.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.8099, allocations: 11.56 kB / 0.5636 GB, free: 99.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005908/0.8105, allocations: 1.225 MB / 0.5648 GB, free: 97.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8105, allocations: 3.812 kB / 0.5648 GB, free: 97.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.8116, allocations: 1.003 MB / 0.5658 GB, free: 97.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003438/0.812, allocations: 248.7 kB / 0.566 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.8121, allocations: 4.672 kB / 0.566 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000564/0.8127, allocations: 56.81 kB / 0.5661 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.872e-05/0.8128, allocations: 40.81 kB / 0.5661 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-05/0.8128, allocations: 26.66 kB / 0.5661 GB, free: 97.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008735/0.8137, allocations: 0.6584 MB / 0.5668 GB, free: 97.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8137, allocations: 1.062 kB / 0.5668 GB, free: 97.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001683/0.8154, allocations: 468 kB / 0.5672 GB, free: 97.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.0004993/0.8159, allocations: 384.3 kB / 0.5676 GB, free: 97.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.8178, allocations: 1.243 MB / 0.5688 GB, free: 96.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.8178, allocations: 0.9375 kB / 0.5688 GB, free: 96.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004232/0.8183, allocations: 349.3 kB / 0.5691 GB, free: 96.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.8195, allocations: 263.2 kB / 0.5694 GB, free: 96.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003522/0.8231, allocations: 2.072 MB / 0.5714 GB, free: 95.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008003/0.8239, allocations: 1.272 MB / 0.5727 GB, free: 95.19 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001092/0.825, allocations: 213.9 kB / 0.5729 GB, free: 95.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.8251, allocations: 64.77 kB / 0.5729 GB, free: 95.14 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/0.8251, allocations: 0 / 0.5729 GB, free: 95.14 MB / 426.7 MB Notification: Performance of Templates: time 0.02368/0.8488, allocations: 14.52 MB / 0.5871 GB, free: 94.21 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches