Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 201 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007559/0.0007559, allocations: 99.03 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002355, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1925, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.009199/0.2017, allocations: 12.9 MB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006743/0.2085, allocations: 5.084 MB / 425.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.2099, allocations: 59.75 kB / 425.5 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.2113, allocations: 0.7379 MB / 426.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008149/0.2122, allocations: 468.5 kB / 426.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006424/0.2128, allocations: 375.5 kB / 427.1 MB, free: 8.195 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.2141, allocations: 2.109 MB / 429.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008093/0.2149, allocations: 0.8329 MB / 430 MB, free: 5.211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000517/0.2154, allocations: 0.6454 MB / 430.7 MB, free: 4.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004951/0.2159, allocations: 0.7384 MB / 431.4 MB, free: 3.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.2161, allocations: 100 kB / 431.5 MB, free: 3.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.2163, allocations: 136 kB / 431.7 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2165, allocations: 302.5 kB / 432 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.2167, allocations: 388.6 kB / 432.3 MB, free: 2.906 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.2179, allocations: 2.356 MB / 434.7 MB, free: 0.543 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2179, allocations: 3.938 kB / 434.7 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2179, allocations: 0 / 434.7 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.218, allocations: 0 / 434.7 MB, free: 0.5391 MB / 298.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.003049/0.221, allocations: 1.943 MB / 436.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2211, allocations: 8.031 kB / 436.6 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006709/0.2218, allocations: 269.3 kB / 436.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.2233, allocations: 1.072 MB / 438 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-05/0.2234, allocations: 123.3 kB / 438.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/0.2236, allocations: 175.9 kB / 438.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002823/0.2265, allocations: 1.598 MB / 439.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.848e-05/0.2265, allocations: 11.89 kB / 439.9 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.2267, allocations: 72 kB / 440 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.2267, allocations: 40 kB / 440 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/0.2288, allocations: 1.113 MB / 441.1 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00787/0.2367, allocations: 6.717 MB / 447.8 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.2385, allocations: 1.003 MB / 448.8 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000564/0.239, allocations: 322.3 kB / 449.1 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.2391, allocations: 12.56 kB / 449.1 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.2391, allocations: 39.12 kB / 449.2 MB, free: 1.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 2.084e-06/0.2391, allocations: 0 / 449.2 MB, free: 1.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.003846/0.243, allocations: 2.127 MB / 451.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.2431, allocations: 85.67 kB / 451.4 MB, free: 15.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.2446, allocations: 1.254 MB / 452.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.537e-05/0.2446, allocations: 45.69 kB / 452.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/0.2452, allocations: 0.888 MB / 453.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.2454, allocations: 244.5 kB / 453.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.2454, allocations: 20 kB / 453.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.2456, allocations: 349.9 kB / 454.2 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.2462, allocations: 318.5 kB / 454.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.2471, allocations: 0.7159 MB / 455.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007485/0.2479, allocations: 415 kB / 455.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.2479, allocations: 7.938 kB / 455.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001918/0.2498, allocations: 1.196 MB / 456.8 MB, free: 9.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002496/0.2501, allocations: 496.3 kB / 457.3 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.2501, allocations: 15.95 kB / 457.3 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.2502, allocations: 48.78 kB / 457.4 MB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008605/0.2511, allocations: 267.6 kB / 457.6 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008426/0.252, allocations: 1.288 MB / 458.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007129/0.2527, allocations: 83.95 kB / 459 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.15e-05/0.2528, allocations: 52 kB / 459 MB, free: 6.953 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.2e-06/0.2528, allocations: 4 kB / 459.1 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/0.2542, allocations: 0.9422 MB / 460 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2542, allocations: 19.97 kB / 460 MB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.321e-05/0.2543, allocations: 44.84 kB / 460.1 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007718/0.2551, allocations: 251.6 kB / 460.3 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007478/0.2558, allocations: 1.299 MB / 461.6 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005888/0.2565, allocations: 55.89 kB / 461.7 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.2565, allocations: 52.16 kB / 461.7 MB, free: 4.152 MB / 330.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * 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.0005539/0.2571, allocations: 435.3 kB / 462.1 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.2572, allocations: 134.4 kB / 462.3 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.2586, allocations: 0.7283 MB / 463 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2586, allocations: 4 kB / 463 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2586, allocations: 0 / 463 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.2586, allocations: 3.984 kB / 463 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.2616, allocations: 2.186 MB / 465.2 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2616, allocations: 7.938 kB / 465.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005992/0.2622, allocations: 135.9 kB / 465.3 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.518e-05/0.2623, allocations: 28.8 kB / 465.4 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.2624, allocations: 20.06 kB / 465.4 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007435/0.2631, allocations: 1.277 MB / 466.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2631, allocations: 12 kB / 466.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.2649, allocations: 1.163 MB / 467.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.2652, allocations: 271.3 kB / 468.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2653, allocations: 19.98 kB / 468.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005812/0.2659, allocations: 55.97 kB / 468.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.325e-05/0.266, allocations: 52.44 kB / 468.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.266, allocations: 16 kB / 468.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001022/0.2671, allocations: 0.8344 MB / 469.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2671, allocations: 0 / 469.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001262/0.2683, allocations: 0.5039 MB / 469.6 MB, free: 11.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.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,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0001922/0.2685, allocations: 139.1 kB / 469.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.2708, allocations: 1.48 MB / 471.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2708, allocations: 4.125 kB / 471.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006547/0.2714, allocations: 442.1 kB / 471.6 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.2728, allocations: 306.5 kB / 471.9 MB, free: 9.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/0.2775, allocations: 3.509 MB / 475.4 MB, free: 6.027 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007601/0.2782, allocations: 1.229 MB / 476.7 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002479/0.2785, allocations: 87.44 kB / 476.7 MB, free: 4.68 MB / 346.7 MB Notification: Performance of SimCode: time 3.196e-06/0.2785, allocations: 4 kB / 476.7 MB, free: 4.676 MB / 346.7 MB Notification: Performance of Templates: time 0.0302/0.3087, allocations: 25.44 MB / 0.4904 GB, free: 11.27 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches