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.001347/0.001346, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007688/0.0007689, allocations: 103.1 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.0002139, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.181, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.009042/0.1901, allocations: 12.42 MB / 420.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006118/0.1962, allocations: 4.878 MB / 425.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.198, allocations: 59.75 kB / 425.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.1996, allocations: 0.7147 MB / 426.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009886/0.2006, allocations: 448.6 kB / 426.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006549/0.2012, allocations: 311.6 kB / 426.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001401/0.2026, allocations: 1.971 MB / 428.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.2037, allocations: 0.9692 MB / 429.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005655/0.2042, allocations: 0.5987 MB / 430.4 MB, free: 5.223 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000492/0.2047, allocations: 0.6763 MB / 431.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.2049, allocations: 92 kB / 431.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.2052, allocations: 132 kB / 431.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.2053, allocations: 278.7 kB / 431.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.2058, allocations: 0.7946 MB / 432.4 MB, free: 3.246 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.207, allocations: 2.181 MB / 434.5 MB, free: 1.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.207, allocations: 0 / 434.5 MB, free: 1.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.207, allocations: 0 / 434.5 MB, free: 1.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.207, allocations: 0 / 434.5 MB, free: 1.059 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.002557/0.2096, allocations: 1.735 MB / 436.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2096, allocations: 8.031 kB / 436.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006424/0.2103, allocations: 246.6 kB / 436.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.2118, allocations: 1.028 MB / 437.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.663e-05/0.2119, allocations: 111.4 kB / 437.7 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.2121, allocations: 156.3 kB / 437.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002322/0.2144, allocations: 1.423 MB / 439.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.218e-05/0.2144, allocations: 11.89 kB / 439.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.2146, allocations: 67.94 kB / 439.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.2146, allocations: 36 kB / 439.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.2165, allocations: 0.9673 MB / 440.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00752/0.224, allocations: 6.179 MB / 446.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.2251, allocations: 0.6545 MB / 447.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/0.2255, allocations: 246.7 kB / 447.4 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.2256, allocations: 12.38 kB / 447.4 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.2256, allocations: 43 kB / 447.4 MB, free: 3.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=51): time 4.047e-06/0.2256, allocations: 4 kB / 447.5 MB, free: 3.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=54): time 0.003085/0.2287, allocations: 1.752 MB / 449.2 MB, free: 1.805 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.2288, allocations: 89.55 kB / 449.3 MB, free: 1.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001461/0.2303, allocations: 1.115 MB / 450.4 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.2303, allocations: 37.7 kB / 450.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005504/0.2309, allocations: 0.8015 MB / 451.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.231, allocations: 205.1 kB / 451.4 MB, free: 15.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.2311, allocations: 20 kB / 451.5 MB, free: 15.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2312, allocations: 341.9 kB / 451.8 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.2317, allocations: 241.9 kB / 452 MB, free: 14.92 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006883/0.2324, allocations: 0.629 MB / 452.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.2337, allocations: 0.9341 MB / 453.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.2337, allocations: 4 kB / 453.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001705/0.2354, allocations: 1.01 MB / 454.6 MB, free: 11.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002602/0.2357, allocations: 481.5 kB / 455.1 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.2357, allocations: 12 kB / 455.1 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001416/0.2359, allocations: 36.86 kB / 455.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.2366, allocations: 231.6 kB / 455.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009034/0.2375, allocations: 1.295 MB / 456.7 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.2382, allocations: 60.05 kB / 456.7 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.2382, allocations: 44 kB / 456.8 MB, free: 9.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.52e-06/0.2383, allocations: 4 kB / 456.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001218/0.2395, allocations: 0.8109 MB / 457.6 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.2395, allocations: 16.22 kB / 457.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.229e-05/0.2396, allocations: 40.84 kB / 457.6 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.2403, allocations: 219.6 kB / 457.8 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008356/0.2411, allocations: 1.304 MB / 459.1 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.2417, allocations: 47.89 kB / 459.2 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.2417, allocations: 44 kB / 459.2 MB, free: 6.887 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.0006217/0.2424, allocations: 408.8 kB / 459.6 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.2425, allocations: 122.5 kB / 459.8 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.2437, allocations: 0.5865 MB / 460.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2437, allocations: 4 kB / 460.3 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2437, allocations: 4 kB / 460.3 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2437, allocations: 3.984 kB / 460.3 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002694/0.2464, allocations: 1.878 MB / 462.2 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2465, allocations: 4 kB / 462.2 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.247, allocations: 116 kB / 462.3 MB, free: 3.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.603e-05/0.247, allocations: 16.86 kB / 462.4 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.2471, allocations: 15.98 kB / 462.4 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008391/0.2479, allocations: 1.28 MB / 463.7 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.248, allocations: 4.031 kB / 463.7 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.2494, allocations: 0.9383 MB / 464.6 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.2497, allocations: 247.6 kB / 464.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.2498, allocations: 15.98 kB / 464.9 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.2503, allocations: 31.98 kB / 464.9 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.75e-05/0.2504, allocations: 48.36 kB / 464.9 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.2504, allocations: 15.98 kB / 464.9 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001078/0.2515, allocations: 0.7477 MB / 465.7 MB, free: 112 kB / 330.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2515, allocations: 0 / 465.7 MB, free: 112 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001372/0.2529, allocations: 464 kB / 466.2 MB, free: 15.65 MB / 346.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.0002074/0.2531, allocations: 127.2 kB / 466.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.2552, allocations: 1.252 MB / 467.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.2552, allocations: 6.062 kB / 467.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005417/0.2558, allocations: 361.5 kB / 467.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.2572, allocations: 261.8 kB / 468.1 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003984/0.2612, allocations: 3.122 MB / 471.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.2619, allocations: 1.169 MB / 472.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.2622, allocations: 83.44 kB / 472.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2622, allocations: 0 / 472.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of Templates: time 0.02623/0.2884, allocations: 22.69 MB / 495.2 MB, free: 2.527 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