Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002769/0.002769, allocations: 179.7 kB / 8.152 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001286/0.001286, allocations: 95.8 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.125e-05/1.129e-05, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2415, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.4145, allocations: 116.5 MB / 478.4 MB, free: 1.457 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.4149, allocations: 83.95 kB / 478.4 MB, free: 1.375 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3319/0.7468, allocations: 46.19 MB / 0.5123 GB, free: 103.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001801/0.7471, allocations: 48.58 kB / 0.5124 GB, free: 103.3 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.005873/0.7529, allocations: 1.975 MB / 0.5143 GB, free: 102.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.753, allocations: 7.844 kB / 0.5143 GB, free: 102.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001527/0.7545, allocations: 308 kB / 0.5146 GB, free: 102.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00383/0.7584, allocations: 1.277 MB / 0.5159 GB, free: 101.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003685/0.7588, allocations: 197.7 kB / 0.516 GB, free: 101.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004196/0.7592, allocations: 120 kB / 0.5162 GB, free: 101.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004073/0.7633, allocations: 1.268 MB / 0.5174 GB, free: 101.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004279/0.7677, allocations: 1.506 MB / 0.5189 GB, free: 101.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.847e-05/0.7678, allocations: 12.59 kB / 0.5189 GB, free: 101.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.768, allocations: 2.875 kB / 0.5189 GB, free: 101.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.193e-05/0.768, allocations: 44.34 kB / 0.5189 GB, free: 101.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/0.7838, allocations: 7.124 MB / 0.5259 GB, free: 97.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002275/0.7861, allocations: 0.5737 MB / 0.5264 GB, free: 97.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000995/0.7871, allocations: 370.7 kB / 0.5268 GB, free: 97.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-05/0.7872, allocations: 13.53 kB / 0.5268 GB, free: 97.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.7873, allocations: 45.66 kB / 0.5269 GB, free: 97.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 3.617e-06/0.7873, allocations: 0 / 0.5269 GB, free: 97.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=111): time 0.01785/0.8051, allocations: 4.415 MB / 0.5312 GB, free: 95.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.8052, allocations: 93.7 kB / 0.5313 GB, free: 95.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.8075, allocations: 1.013 MB / 0.5322 GB, free: 94.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002433/0.8078, allocations: 29.61 kB / 0.5323 GB, free: 94.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003214/0.8081, allocations: 0.7604 MB / 0.533 GB, free: 94.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003586/0.8085, allocations: 377.1 kB / 0.5334 GB, free: 93.99 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.8086, allocations: 0 / 0.5334 GB, free: 93.99 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.8088, allocations: 372.3 kB / 0.5337 GB, free: 93.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.8102, allocations: 0.5166 MB / 0.5342 GB, free: 93.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.8118, allocations: 0.9455 MB / 0.5352 GB, free: 92.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.8134, allocations: 0.5495 MB / 0.5357 GB, free: 92.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/0.8134, allocations: 8.625 kB / 0.5357 GB, free: 92.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004153/0.8176, allocations: 1.448 MB / 0.5371 GB, free: 91.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001014/0.8186, allocations: 5.31 MB / 0.5423 GB, free: 86.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/0.8187, allocations: 12.5 kB / 0.5423 GB, free: 86.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.819, allocations: 43.14 kB / 0.5424 GB, free: 86.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003932/0.8229, allocations: 451.7 kB / 0.5428 GB, free: 85.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.8239, allocations: 1.242 MB / 0.544 GB, free: 84.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/0.8264, allocations: 148.1 kB / 0.5441 GB, free: 84.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/0.8266, allocations: 66.88 kB / 0.5442 GB, free: 84.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.8266, allocations: 8.062 kB / 0.5442 GB, free: 84.71 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003786/0.8304, allocations: 1.321 MB / 0.5455 GB, free: 84.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.8305, allocations: 15.53 kB / 0.5455 GB, free: 84.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.8306, allocations: 42.58 kB / 0.5456 GB, free: 84.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/0.8343, allocations: 421.7 kB / 0.546 GB, free: 84.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009816/0.8354, allocations: 1.245 MB / 0.5472 GB, free: 82.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/0.8376, allocations: 121.5 kB / 0.5473 GB, free: 82.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/0.8379, allocations: 62.22 kB / 0.5473 GB, free: 82.86 MB / 394.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: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,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 (194): * Single equations (assignments): 193 * 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.000472/0.8383, allocations: 75.38 kB / 0.5474 GB, free: 82.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004899/0.8388, allocations: 152.7 kB / 0.5476 GB, free: 82.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.8421, allocations: 1.071 MB / 0.5486 GB, free: 82.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.8422, allocations: 14.47 kB / 0.5486 GB, free: 82.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/0.8422, allocations: 1.188 kB / 0.5486 GB, free: 82.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.8422, allocations: 7.891 kB / 0.5486 GB, free: 82.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009849/0.8521, allocations: 3.249 MB / 0.5518 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/0.8522, allocations: 9.188 kB / 0.5518 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002526/0.8547, allocations: 295.4 kB / 0.5521 GB, free: 80.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.8549, allocations: 36 kB / 0.5521 GB, free: 80.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.855, allocations: 22.41 kB / 0.5522 GB, free: 80.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009541/0.856, allocations: 1.238 MB / 0.5534 GB, free: 79.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.678e-05/0.856, allocations: 15.25 kB / 0.5534 GB, free: 79.32 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004072/0.8601, allocations: 2.253 MB / 0.5556 GB, free: 77.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009869/0.8612, allocations: 319.2 kB / 0.5559 GB, free: 77.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.8615, allocations: 25.83 kB / 0.5559 GB, free: 77.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002213/0.8638, allocations: 144.2 kB / 0.556 GB, free: 77.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/0.8642, allocations: 116.2 kB / 0.5562 GB, free: 77.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.8643, allocations: 44.81 kB / 0.5562 GB, free: 77.03 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00173/0.866, allocations: 0.7427 MB / 0.5569 GB, free: 76.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003334/0.8694, allocations: 0.571 MB / 0.5575 GB, free: 76.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (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) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0007214/0.8702, allocations: 395.9 kB / 0.5579 GB, free: 76.49 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005383/0.8756, allocations: 2.208 MB / 0.56 GB, free: 74.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/0.8756, allocations: 0 / 0.56 GB, free: 74.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.8771, allocations: 0.5403 MB / 0.5605 GB, free: 74.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/0.8797, allocations: 287.2 kB / 0.5608 GB, free: 73.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008931/0.8887, allocations: 2.754 MB / 0.5635 GB, free: 71.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002074/0.8908, allocations: 1.504 MB / 0.565 GB, free: 69.92 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/0.8909, allocations: 0 / 0.565 GB, free: 69.92 MB / 394.7 MB Notification: Performance of Templates: time 0.05108/0.942, allocations: 31.05 MB / 0.5953 GB, free: 41.82 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches