Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 175.9 kB / 8.348 MB, free: 0.7227 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.364/1.364, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008772/0.0008773, allocations: 95.91 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.548e-05/1.551e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08366/0.08369, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3117/0.3954, allocations: 117.4 MB / 0.4931 GB, free: 9.332 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3957, allocations: 83.95 kB / 0.4931 GB, free: 9.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1158/0.5115, allocations: 46.41 MB / 0.5385 GB, free: 10.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5115, allocations: 0 / 0.5385 GB, free: 10.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001245/0.5117, allocations: 51.98 kB / 0.5385 GB, free: 10.59 MB / 426.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.004/0.5157, allocations: 1.926 MB / 0.5404 GB, free: 8.609 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.5157, allocations: 12.03 kB / 0.5404 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.5168, allocations: 305 kB / 0.5407 GB, free: 8.297 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.5193, allocations: 1.253 MB / 0.5419 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.5195, allocations: 192.8 kB / 0.5421 GB, free: 6.781 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.5198, allocations: 115.9 kB / 0.5422 GB, free: 6.668 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002316/0.5221, allocations: 1.265 MB / 0.5435 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00256/0.5247, allocations: 1.504 MB / 0.5449 GB, free: 3.844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.477e-05/0.5247, allocations: 11.84 kB / 0.5449 GB, free: 3.832 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5248, allocations: 0 / 0.5449 GB, free: 3.832 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.5249, allocations: 55.89 kB / 0.545 GB, free: 3.777 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2018/0.7267, allocations: 7.121 MB / 0.5519 GB, free: 104.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.7285, allocations: 1.105 MB / 0.553 GB, free: 103.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000498/0.729, allocations: 349.2 kB / 0.5534 GB, free: 103.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.33e-05/0.7291, allocations: 10.27 kB / 0.5534 GB, free: 103.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.7291, allocations: 47.53 kB / 0.5534 GB, free: 103.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 2.735e-06/0.7291, allocations: 0 / 0.5534 GB, free: 103.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.009895/0.739, allocations: 4.389 MB / 0.5577 GB, free: 103.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.7391, allocations: 93.05 kB / 0.5578 GB, free: 103 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/0.7407, allocations: 1.007 MB / 0.5588 GB, free: 102.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/0.7408, allocations: 27.14 kB / 0.5588 GB, free: 102.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005761/0.7413, allocations: 0.9821 MB / 0.5598 GB, free: 102.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/0.7416, allocations: 378.6 kB / 0.5601 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.486e-05/0.7417, allocations: 4.5 kB / 0.5601 GB, free: 102.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.096e-05/0.7418, allocations: 365.9 kB / 0.5605 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007845/0.7426, allocations: 0.5164 MB / 0.561 GB, free: 101.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.7436, allocations: 0.939 MB / 0.5619 GB, free: 101.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.7445, allocations: 0.5503 MB / 0.5624 GB, free: 101.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.7445, allocations: 6.031 kB / 0.5624 GB, free: 101.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00274/0.7472, allocations: 1.523 MB / 0.5639 GB, free: 101.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009058/0.7481, allocations: 5.362 MB / 0.5692 GB, free: 95.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.7482, allocations: 13.94 kB / 0.5692 GB, free: 95.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.7484, allocations: 42.16 kB / 0.5692 GB, free: 95.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.7503, allocations: 443.2 kB / 0.5696 GB, free: 95.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006956/0.751, allocations: 1.255 MB / 0.5709 GB, free: 94.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.7527, allocations: 139.7 kB / 0.571 GB, free: 94.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.7528, allocations: 63.28 kB / 0.5711 GB, free: 94.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.739e-06/0.7528, allocations: 3.344 kB / 0.5711 GB, free: 94.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002302/0.7551, allocations: 1.315 MB / 0.5723 GB, free: 94.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/0.7552, allocations: 13.84 kB / 0.5724 GB, free: 94.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001225/0.7553, allocations: 45.58 kB / 0.5724 GB, free: 94.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.7571, allocations: 415.3 kB / 0.5728 GB, free: 94.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007223/0.7578, allocations: 1.242 MB / 0.574 GB, free: 93.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.7595, allocations: 115.4 kB / 0.5741 GB, free: 93.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.7597, allocations: 64.58 kB / 0.5742 GB, free: 93.25 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: 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.0004142/0.7601, allocations: 153.5 kB / 0.5743 GB, free: 93.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.7604, allocations: 145.6 kB / 0.5745 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002096/0.7625, allocations: 1.085 MB / 0.5755 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.7625, allocations: 11.31 kB / 0.5755 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7625, allocations: 0 / 0.5755 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.7626, allocations: 6.625 kB / 0.5755 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/0.7684, allocations: 3.245 MB / 0.5787 GB, free: 92.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.7685, allocations: 13.03 kB / 0.5787 GB, free: 92.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.7697, allocations: 284.4 kB / 0.579 GB, free: 92.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.7698, allocations: 39.8 kB / 0.579 GB, free: 92.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.962e-05/0.7699, allocations: 19.22 kB / 0.579 GB, free: 92.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006067/0.7705, allocations: 1.239 MB / 0.5803 GB, free: 91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/0.7705, allocations: 14.91 kB / 0.5803 GB, free: 91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.7727, allocations: 2.256 MB / 0.5825 GB, free: 89.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005438/0.7733, allocations: 323.1 kB / 0.5828 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.7735, allocations: 20.39 kB / 0.5828 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.7745, allocations: 138.2 kB / 0.5829 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.7747, allocations: 131.1 kB / 0.5831 GB, free: 89.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.973e-05/0.7748, allocations: 40.95 kB / 0.5831 GB, free: 89.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009238/0.7757, allocations: 0.7365 MB / 0.5838 GB, free: 89.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7757, allocations: 0 / 0.5838 GB, free: 89.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002044/0.7778, allocations: 0.5721 MB / 0.5844 GB, free: 89.15 MB / 426.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.0004562/0.7782, allocations: 395.5 kB / 0.5848 GB, free: 88.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.7812, allocations: 2.223 MB / 0.5869 GB, free: 87.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.7812, allocations: 2.938 kB / 0.5869 GB, free: 87.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.7819, allocations: 0.531 MB / 0.5874 GB, free: 87.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.7833, allocations: 300.9 kB / 0.5877 GB, free: 87.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.7879, allocations: 2.688 MB / 0.5904 GB, free: 86.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006816/0.7886, allocations: 1.387 MB / 0.5917 GB, free: 85.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001876/0.7905, allocations: 338.4 kB / 0.592 GB, free: 85.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.7908, allocations: 84.03 kB / 0.5921 GB, free: 85.24 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7908, allocations: 0 / 0.5921 GB, free: 85.24 MB / 426.7 MB Notification: Performance of Templates: time 0.02954/0.8203, allocations: 19.32 MB / 0.611 GB, free: 84.09 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches