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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 244.7 MB, free: 8.129 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007905/0.0007906, allocations: 98.41 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002248, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.206, allocations: 51.29 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.008777/0.2148, allocations: 12.42 MB / 420.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006344/0.2212, allocations: 4.877 MB / 425.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.2229, allocations: 55.75 kB / 425.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.2245, allocations: 0.7225 MB / 426.2 MB, free: 9.605 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.2255, allocations: 448.6 kB / 426.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005936/0.2261, allocations: 303.7 kB / 426.9 MB, free: 8.867 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2274, allocations: 1.976 MB / 428.9 MB, free: 6.879 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000948/0.2284, allocations: 0.9731 MB / 429.9 MB, free: 5.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.2289, allocations: 0.5949 MB / 430.5 MB, free: 5.254 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004546/0.2294, allocations: 0.6724 MB / 431.2 MB, free: 4.578 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.2295, allocations: 92 kB / 431.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.2298, allocations: 132 kB / 431.4 MB, free: 4.359 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.2299, allocations: 278.7 kB / 431.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004545/0.2304, allocations: 0.7945 MB / 432.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.2315, allocations: 2.181 MB / 434.6 MB, free: 1.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2316, allocations: 4 kB / 434.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2316, allocations: 4 kB / 434.6 MB, free: 1.086 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.375e-05/0.2316, allocations: 0 / 434.6 MB, free: 1.086 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.002434/0.234, allocations: 1.724 MB / 436.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2341, allocations: 8.031 kB / 436.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002214/0.2343, allocations: 219.7 kB / 436.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006074/0.2349, allocations: 254.6 kB / 436.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.2363, allocations: 1.024 MB / 437.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.2364, allocations: 111.4 kB / 438 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.2365, allocations: 160 kB / 438.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.2388, allocations: 1.427 MB / 439.5 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.994e-05/0.2389, allocations: 11.84 kB / 439.6 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.239, allocations: 60 kB / 439.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.239, allocations: 36 kB / 439.6 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.2407, allocations: 0.9712 MB / 440.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006938/0.2477, allocations: 6.175 MB / 446.8 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.2487, allocations: 0.6466 MB / 447.4 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.2491, allocations: 257.9 kB / 447.7 MB, free: 3.496 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.2492, allocations: 16.48 kB / 447.7 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.2492, allocations: 38.94 kB / 447.7 MB, free: 3.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=51): time 1.793e-06/0.2492, allocations: 0 / 447.7 MB, free: 3.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=54): time 0.002895/0.2521, allocations: 1.76 MB / 449.5 MB, free: 1.605 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.2522, allocations: 81.55 kB / 449.6 MB, free: 1.508 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.2536, allocations: 1.115 MB / 450.7 MB, free: 388 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.2536, allocations: 37.7 kB / 450.7 MB, free: 344 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005287/0.2541, allocations: 0.7977 MB / 451.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.2543, allocations: 205.1 kB / 451.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.2543, allocations: 24 kB / 451.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.2545, allocations: 349.9 kB / 452.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.2549, allocations: 237.9 kB / 452.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006616/0.2556, allocations: 0.6368 MB / 453 MB, free: 13.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.2569, allocations: 0.9224 MB / 453.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.2569, allocations: 4 kB / 453.9 MB, free: 12.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001638/0.2585, allocations: 1.01 MB / 454.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003235/0.2589, allocations: 481.5 kB / 455.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.2589, allocations: 12 kB / 455.4 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001603/0.2591, allocations: 40.8 kB / 455.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.2598, allocations: 235.6 kB / 455.7 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.2606, allocations: 1.292 MB / 456.9 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/0.2612, allocations: 55.89 kB / 457 MB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.2613, allocations: 47.98 kB / 457.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.059e-06/0.2613, allocations: 4 kB / 457.1 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001236/0.2625, allocations: 0.8147 MB / 457.9 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.2626, allocations: 12 kB / 457.9 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001106/0.2627, allocations: 44.78 kB / 457.9 MB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007652/0.2635, allocations: 219.5 kB / 458.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007688/0.2642, allocations: 1.296 MB / 459.4 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.2648, allocations: 43.89 kB / 459.5 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.2648, allocations: 44.16 kB / 459.5 MB, free: 6.691 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.000548/0.2654, allocations: 408.8 kB / 459.9 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.2655, allocations: 122.5 kB / 460 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.2666, allocations: 0.5787 MB / 460.6 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2666, allocations: 4 kB / 460.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2666, allocations: 4 kB / 460.6 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2666, allocations: 3.984 kB / 460.6 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.2693, allocations: 1.882 MB / 462.5 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2693, allocations: 4 kB / 462.5 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.2698, allocations: 111.8 kB / 462.6 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.2699, allocations: 20.86 kB / 462.6 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.27, allocations: 15.98 kB / 462.7 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008543/0.2708, allocations: 1.28 MB / 463.9 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2709, allocations: 4.031 kB / 463.9 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2723, allocations: 0.9422 MB / 464.9 MB, free: 1.043 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.2726, allocations: 243.6 kB / 465.1 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.2727, allocations: 15.98 kB / 465.1 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.2732, allocations: 39.98 kB / 465.2 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.762e-05/0.2733, allocations: 40.36 kB / 465.2 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.2733, allocations: 19.98 kB / 465.2 MB, free: 0.668 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001002/0.2743, allocations: 0.7478 MB / 466 MB, free: 15.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2743, allocations: 0 / 466 MB, free: 15.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001327/0.2757, allocations: 464.2 kB / 466.4 MB, free: 15.46 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.001687/0.2774, allocations: 1.517 MB / 468 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.2794, allocations: 1.253 MB / 469.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2794, allocations: 0 / 469.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005046/0.2799, allocations: 371 kB / 469.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.2815, allocations: 265.3 kB / 469.8 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/0.293, allocations: 7.558 MB / 477.4 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007179/0.2938, allocations: 1.169 MB / 478.6 MB, free: 2.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007049/0.2945, allocations: 0.5618 MB / 479.1 MB, free: 2.188 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2945, allocations: 0 / 479.1 MB, free: 2.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.628/3.922, allocations: 26.94 MB / 0.4942 GB, free: 7.234 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > 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/jenkins1/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