Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.6 MB / 244.3 MB, free: 8.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007446/0.0007446, allocations: 99.84 kB / 296.4 MB, free: 7.043 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002326/0.000233, allocations: 11.94 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2089, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.008375/0.2173, allocations: 12.42 MB / 419.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006173/0.2235, allocations: 4.87 MB / 424.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.2254, allocations: 55.75 kB / 424.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.2269, allocations: 0.7186 MB / 425.6 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009074/0.2278, allocations: 440.7 kB / 426 MB, free: 9.305 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005883/0.2284, allocations: 315.6 kB / 426.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.2296, allocations: 1.921 MB / 428.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000755/0.2303, allocations: 0.76 MB / 429 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005215/0.2309, allocations: 0.591 MB / 429.6 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004758/0.2314, allocations: 0.6841 MB / 430.3 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.2315, allocations: 92 kB / 430.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.2317, allocations: 132 kB / 430.5 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.2319, allocations: 282.6 kB / 430.8 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.2321, allocations: 352.8 kB / 431.1 MB, free: 4.137 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.2333, allocations: 2.181 MB / 433.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2333, allocations: 4 kB / 433.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2333, allocations: 0 / 433.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.2333, allocations: 0 / 433.3 MB, free: 1.945 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002325/0.2357, allocations: 1.747 MB / 435 MB, free: 144 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.2357, allocations: 15.97 kB / 435 MB, free: 128 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006062/0.2363, allocations: 241.7 kB / 435.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.2377, allocations: 0.9925 MB / 436.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.042e-05/0.2378, allocations: 111 kB / 436.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.2379, allocations: 155.9 kB / 436.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.2402, allocations: 1.423 MB / 438 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.2402, allocations: 3.938 kB / 438 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.2404, allocations: 67.98 kB / 438 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.2404, allocations: 40 kB / 438.1 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.2421, allocations: 0.9634 MB / 439 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006968/0.2491, allocations: 6.171 MB / 445.2 MB, free: 5.559 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009922/0.2501, allocations: 0.6619 MB / 445.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/0.2505, allocations: 254 kB / 446.1 MB, free: 4.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.2506, allocations: 8.422 kB / 446.1 MB, free: 4.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.2506, allocations: 39 kB / 446.2 MB, free: 4.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=51): time 3.156e-06/0.2506, allocations: 4 kB / 446.2 MB, free: 4.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=54): time 0.002786/0.2534, allocations: 1.75 MB / 447.9 MB, free: 2.715 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.2534, allocations: 81.55 kB / 448 MB, free: 2.617 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.2548, allocations: 1.116 MB / 449.1 MB, free: 1.488 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.2548, allocations: 33.7 kB / 449.1 MB, free: 1.449 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004847/0.2553, allocations: 0.8015 MB / 449.9 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.2554, allocations: 201.1 kB / 450.1 MB, free: 448 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.2555, allocations: 20 kB / 450.2 MB, free: 428 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2556, allocations: 345.9 kB / 450.5 MB, free: 76 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004453/0.256, allocations: 245.9 kB / 450.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006596/0.2567, allocations: 0.6329 MB / 451.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005464/0.2573, allocations: 346 kB / 451.7 MB, free: 14.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.2573, allocations: 4 kB / 451.7 MB, free: 14.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001505/0.2588, allocations: 1.002 MB / 452.7 MB, free: 13.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.2591, allocations: 477.5 kB / 453.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/0.2591, allocations: 16 kB / 453.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/0.2592, allocations: 44.8 kB / 453.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.26, allocations: 231.6 kB / 453.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008881/0.2609, allocations: 1.295 MB / 454.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006267/0.2615, allocations: 56.14 kB / 454.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-05/0.2616, allocations: 47.94 kB / 454.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.33e-06/0.2616, allocations: 4 kB / 454.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001152/0.2627, allocations: 0.8186 MB / 455.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.2628, allocations: 12 kB / 455.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.464e-05/0.2628, allocations: 40.84 kB / 455.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/0.2635, allocations: 215.7 kB / 455.9 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008167/0.2643, allocations: 1.303 MB / 457.2 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.2649, allocations: 36 kB / 457.3 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.265, allocations: 48 kB / 457.3 MB, free: 8.586 MB / 330.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0005748/0.2655, allocations: 420.8 kB / 457.7 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.2657, allocations: 114.6 kB / 457.9 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009883/0.2667, allocations: 0.5826 MB / 458.4 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2667, allocations: 8 kB / 458.4 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2667, allocations: 0 / 458.4 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2667, allocations: 3.984 kB / 458.4 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.2693, allocations: 1.89 MB / 460.3 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.2693, allocations: 0 / 460.3 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.2698, allocations: 107.8 kB / 460.4 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-05/0.2699, allocations: 24.88 kB / 460.5 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.2699, allocations: 16 kB / 460.5 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007994/0.2707, allocations: 1.28 MB / 461.8 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2707, allocations: 0 / 461.8 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.272, allocations: 0.9345 MB / 462.7 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.2723, allocations: 243.6 kB / 462.9 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.2725, allocations: 15.95 kB / 463 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004893/0.273, allocations: 39.97 kB / 463 MB, free: 2.621 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.2731, allocations: 48.42 kB / 463 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.2731, allocations: 16 kB / 463.1 MB, free: 2.559 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009744/0.2741, allocations: 0.7399 MB / 463.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2741, allocations: 0 / 463.8 MB, free: 1.812 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001266/0.2753, allocations: 476 kB / 464.3 MB, free: 1.348 MB / 330.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.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.phi) * 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 (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.0002051/0.2756, allocations: 131.1 kB / 464.4 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.2775, allocations: 1.261 MB / 465.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2775, allocations: 0.75 kB / 465.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005089/0.2781, allocations: 361.2 kB / 466 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.2793, allocations: 280.6 kB / 466.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003954/0.2832, allocations: 3.106 MB / 469.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007146/0.284, allocations: 1.169 MB / 470.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.2842, allocations: 79.44 kB / 470.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2842, allocations: 0 / 470.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of Templates: time 0.02487/0.3091, allocations: 22.73 MB / 493.4 MB, free: 4.188 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches