Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007968/0.0007969, allocations: 102.9 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.09e-05/2.093e-05, allocations: 4 kB / 343.7 MB, free: 8.285 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09512, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3196/0.4148, allocations: 117.2 MB / 0.5003 GB, free: 8.395 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.415, allocations: 86.58 kB / 0.5004 GB, free: 8.352 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09357/0.5086, allocations: 38.61 MB / 0.5381 GB, free: 6.539 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.666e-06/0.5087, allocations: 4 kB / 0.5381 GB, free: 6.535 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001165/0.5088, allocations: 36 kB / 0.5382 GB, free: 6.5 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.003133/0.5119, allocations: 1.521 MB / 0.5396 GB, free: 4.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.512, allocations: 8.031 kB / 0.5397 GB, free: 4.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008662/0.5129, allocations: 241.7 kB / 0.5399 GB, free: 4.684 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.5149, allocations: 1.047 MB / 0.5409 GB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.5149, allocations: 44 kB / 0.5409 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.5151, allocations: 95.91 kB / 0.541 GB, free: 3.453 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00162/0.5168, allocations: 0.7831 MB / 0.5418 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.5188, allocations: 1.136 MB / 0.5429 GB, free: 1.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.69e-05/0.5189, allocations: 19.81 kB / 0.5429 GB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.552e-05/0.519, allocations: 0 / 0.5429 GB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.821e-05/0.519, allocations: 36 kB / 0.543 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00806/0.5271, allocations: 5.846 MB / 0.5487 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000972/0.5281, allocations: 0.6079 MB / 0.5493 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.5284, allocations: 190.2 kB / 0.5495 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.5284, allocations: 8.438 kB / 0.5495 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5285, allocations: 39 kB / 0.5495 GB, free: 10.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.805e-06/0.5285, allocations: 4 kB / 0.5495 GB, free: 10.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.002138/0.5306, allocations: 1.257 MB / 0.5507 GB, free: 9.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.5307, allocations: 81.55 kB / 0.5508 GB, free: 8.977 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.5319, allocations: 0.8041 MB / 0.5516 GB, free: 8.156 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.5319, allocations: 25.7 kB / 0.5516 GB, free: 8.125 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.5325, allocations: 0.8128 MB / 0.5524 GB, free: 7.301 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.5326, allocations: 201.2 kB / 0.5526 GB, free: 7.102 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.5327, allocations: 0 / 0.5526 GB, free: 7.102 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.5328, allocations: 341.9 kB / 0.5529 GB, free: 6.762 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003111/0.5331, allocations: 182.6 kB / 0.5531 GB, free: 6.582 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.5337, allocations: 0.5671 MB / 0.5537 GB, free: 5.832 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.5341, allocations: 285.9 kB / 0.5539 GB, free: 5.555 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.5341, allocations: 4 kB / 0.5539 GB, free: 5.551 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001308/0.5355, allocations: 0.8157 MB / 0.5547 GB, free: 4.727 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001807/0.5373, allocations: 5.137 MB / 0.5597 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.5373, allocations: 15.98 kB / 0.5598 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.5375, allocations: 44.84 kB / 0.5598 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007696/0.5382, allocations: 231.6 kB / 0.56 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008791/0.5391, allocations: 1.247 MB / 0.5612 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006713/0.5398, allocations: 36.05 kB / 0.5613 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-05/0.5399, allocations: 52.03 kB / 0.5613 GB, free: 13.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.5399, allocations: 5.562 kB / 0.5613 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001074/0.541, allocations: 0.6621 MB / 0.562 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.541, allocations: 12 kB / 0.562 GB, free: 12.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.765e-05/0.5411, allocations: 45.69 kB / 0.562 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006682/0.5418, allocations: 223.6 kB / 0.5622 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007712/0.5426, allocations: 1.252 MB / 0.5635 GB, free: 11.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/0.5432, allocations: 12 kB / 0.5635 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.05e-05/0.5432, allocations: 44 kB / 0.5635 GB, free: 11.08 MB / 442.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.0001532/0.5434, allocations: 145.7 kB / 0.5637 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.5436, allocations: 106.7 kB / 0.5638 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008532/0.5444, allocations: 467.7 kB / 0.5642 GB, free: 10.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.5444, allocations: 8 kB / 0.5642 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.5444, allocations: 0 / 0.5642 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.5445, allocations: 3.984 kB / 0.5642 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.5467, allocations: 1.54 MB / 0.5657 GB, free: 8.734 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5467, allocations: 0 / 0.5657 GB, free: 8.734 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005174/0.5472, allocations: 112.1 kB / 0.5658 GB, free: 8.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.532e-05/0.5473, allocations: 20.86 kB / 0.5659 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.5473, allocations: 8 kB / 0.5659 GB, free: 8.594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008006/0.5481, allocations: 1.237 MB / 0.5671 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5481, allocations: 4.031 kB / 0.5671 GB, free: 7.242 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.5492, allocations: 0.8735 MB / 0.5679 GB, free: 6.285 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.5495, allocations: 227.7 kB / 0.5681 GB, free: 6.043 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.5496, allocations: 11.95 kB / 0.5682 GB, free: 6.031 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004682/0.5501, allocations: 27.97 kB / 0.5682 GB, free: 6.004 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.5502, allocations: 40.42 kB / 0.5682 GB, free: 5.965 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.5502, allocations: 16 kB / 0.5682 GB, free: 5.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000736/0.5509, allocations: 0.585 MB / 0.5688 GB, free: 5.355 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5509, allocations: 0 / 0.5688 GB, free: 5.355 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001363/0.5523, allocations: 424 kB / 0.5692 GB, free: 4.941 MB / 442.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.0004745/0.5528, allocations: 350.9 kB / 0.5695 GB, free: 4.594 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.5544, allocations: 1.113 MB / 0.5706 GB, free: 3.469 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5544, allocations: 0 / 0.5706 GB, free: 3.469 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.5548, allocations: 307.2 kB / 0.5709 GB, free: 3.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.5559, allocations: 236.8 kB / 0.5711 GB, free: 2.938 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.5591, allocations: 1.802 MB / 0.5729 GB, free: 1.074 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2155/0.7746, allocations: 1.2 MB / 0.5741 GB, free: 95.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001951/0.7766, allocations: 186 kB / 0.5743 GB, free: 95.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.7768, allocations: 57.62 kB / 0.5743 GB, free: 95.25 MB / 442.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7768, allocations: 3.562 kB / 0.5743 GB, free: 95.25 MB / 442.7 MB Notification: Performance of Templates: time 0.03721/0.8141, allocations: 12.7 MB / 0.5867 GB, free: 94.79 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches