Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 95.39 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 180 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006778/0.0006778, allocations: 8 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1385, allocations: 47.59 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01475/0.1534, allocations: 12.35 MB / 340.7 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1642, allocations: 5.502 MB / 346.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003829/0.168, allocations: 67.62 kB / 346.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003495/0.1715, allocations: 0.8742 MB / 347.1 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004422/0.176, allocations: 0.9346 MB / 348.1 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002477/0.1785, allocations: 0.6789 MB / 348.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00424/0.1827, allocations: 1.805 MB / 350.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.1843, allocations: 0.8895 MB / 351.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.1858, allocations: 0.7935 MB / 352.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.187, allocations: 0.8201 MB / 353 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.1872, allocations: 96 kB / 353.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.1874, allocations: 96 kB / 353.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.1878, allocations: 334.5 kB / 353.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.1882, allocations: 424.6 kB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002169/0.1904, allocations: 2.43 MB / 356.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1904, allocations: 0 / 356.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1904, allocations: 0 / 356.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.742e-05/0.1905, allocations: 0 / 356.4 MB, free: 7.887 MB / 302.1 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.004054/0.1945, allocations: 2.123 MB / 358.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1946, allocations: 12.03 kB / 358.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.195, allocations: 257 kB / 358.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.1969, allocations: 1.175 MB / 360 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.1972, allocations: 264.8 kB / 360.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.1975, allocations: 191.9 kB / 360.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003438/0.2009, allocations: 1.919 MB / 362.3 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.201, allocations: 3.938 kB / 362.3 MB, free: 1.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.2011, allocations: 80 kB / 362.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.515e-05/0.2012, allocations: 44 kB / 362.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/0.2047, allocations: 1.626 MB / 364.1 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.215, allocations: 7.293 MB / 371.4 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002585/0.2176, allocations: 1.253 MB / 372.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.81e-05/0.2177, allocations: 16.98 kB / 372.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.2178, allocations: 39.56 kB / 372.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 3.556e-06/0.2178, allocations: 0 / 372.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.2201/0.4379, allocations: 8.815 MB / 381.5 MB, free: 51.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.438, allocations: 63.28 kB / 381.6 MB, free: 51.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.4401, allocations: 1.221 MB / 382.8 MB, free: 51.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.946e-05/0.4402, allocations: 47.58 kB / 382.8 MB, free: 51.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006382/0.4409, allocations: 0.9913 MB / 383.8 MB, free: 50.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002807/0.4412, allocations: 396.2 kB / 384.2 MB, free: 50.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.411e-05/0.4412, allocations: 29.34 kB / 384.2 MB, free: 50.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.4414, allocations: 369.9 kB / 384.6 MB, free: 49.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.4433, allocations: 0.7672 MB / 385.4 MB, free: 49.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/0.4455, allocations: 1.22 MB / 386.6 MB, free: 48.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/0.4476, allocations: 0.819 MB / 387.4 MB, free: 48.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.4476, allocations: 4.406 kB / 387.4 MB, free: 48.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005139/0.4527, allocations: 2.224 MB / 389.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00105/0.4538, allocations: 5.842 MB / 395.5 MB, free: 41.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/0.4538, allocations: 14.78 kB / 395.5 MB, free: 41.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001895/0.454, allocations: 39.3 kB / 395.5 MB, free: 41.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/0.456, allocations: 439.1 kB / 396 MB, free: 41.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008074/0.4568, allocations: 1.286 MB / 397.2 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.4584, allocations: 173.8 kB / 397.4 MB, free: 39.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.4586, allocations: 65.23 kB / 397.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.316e-06/0.4586, allocations: 3.75 kB / 397.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004097/0.4627, allocations: 1.956 MB / 399.4 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/0.4627, allocations: 20.06 kB / 399.5 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-05/0.4628, allocations: 47.2 kB / 399.5 MB, free: 39.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.4645, allocations: 420.9 kB / 399.9 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006645/0.4652, allocations: 1.285 MB / 401.2 MB, free: 37.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.4667, allocations: 140.8 kB / 401.3 MB, free: 37.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4668, allocations: 64.25 kB / 401.4 MB, free: 37.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.00124/0.4681, allocations: 483.5 kB / 401.9 MB, free: 37.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002962/0.4684, allocations: 157.7 kB / 402 MB, free: 37.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003622/0.472, allocations: 1.684 MB / 403.7 MB, free: 36.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.472, allocations: 15.78 kB / 403.7 MB, free: 36.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4721, allocations: 0 / 403.7 MB, free: 36.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4721, allocations: 6.656 kB / 403.7 MB, free: 36.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006422/0.4785, allocations: 3.908 MB / 407.6 MB, free: 34.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.4785, allocations: 6.75 kB / 407.6 MB, free: 34.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.4796, allocations: 289.1 kB / 407.9 MB, free: 34.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.256e-05/0.4797, allocations: 37.66 kB / 408 MB, free: 34.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.245e-05/0.4798, allocations: 30.84 kB / 408 MB, free: 34.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006008/0.4804, allocations: 1.283 MB / 409.3 MB, free: 33.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.4804, allocations: 19.52 kB / 409.3 MB, free: 33.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/0.4845, allocations: 2.985 MB / 412.3 MB, free: 30.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005097/0.485, allocations: 311 kB / 412.6 MB, free: 29.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.4852, allocations: 35.98 kB / 412.6 MB, free: 29.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000865/0.486, allocations: 131.9 kB / 412.7 MB, free: 29.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.4863, allocations: 132.2 kB / 412.9 MB, free: 29.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.578e-05/0.4863, allocations: 40 kB / 412.9 MB, free: 29.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00097/0.4873, allocations: 0.7986 MB / 413.7 MB, free: 28.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4873, allocations: 0 / 413.7 MB, free: 28.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002015/0.4893, allocations: 0.6094 MB / 414.3 MB, free: 28.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.000196/0.4895, allocations: 147.9 kB / 414.5 MB, free: 28.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005532/0.4951, allocations: 2.934 MB / 417.4 MB, free: 25.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.4951, allocations: 4.766 kB / 417.4 MB, free: 25.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.4965, allocations: 0.7499 MB / 418.2 MB, free: 24.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.498, allocations: 327.8 kB / 418.5 MB, free: 24.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005599/0.5036, allocations: 4.288 MB / 422.8 MB, free: 19.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007044/0.5043, allocations: 1.384 MB / 424.1 MB, free: 18.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001391/0.5057, allocations: 288.4 kB / 424.4 MB, free: 17.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.5061, allocations: 107.4 kB / 424.5 MB, free: 17.79 MB / 318.1 MB Notification: Performance of SimCode: time 1.332e-06/0.5061, allocations: 0 / 424.5 MB, free: 17.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02437/0.5304, allocations: 16.28 MB / 440.8 MB, free: 1.516 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches