Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2806, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009434/0.2901, allocations: 8.172 MB / 416.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005175/0.2953, allocations: 2.734 MB / 419.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.2966, allocations: 27.94 kB / 419.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.2986, allocations: 0.5356 MB / 420.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001825/0.3005, allocations: 432.5 kB / 420.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009227/0.3014, allocations: 366.8 kB / 421 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001828/0.3032, allocations: 1.499 MB / 422.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008414/0.3041, allocations: 0.6048 MB / 423.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008131/0.3049, allocations: 0.5719 MB / 423.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006508/0.3056, allocations: 0.5949 MB / 424.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.3058, allocations: 143.9 kB / 424.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003451/0.3061, allocations: 176 kB / 424.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.3063, allocations: 290.9 kB / 424.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005997/0.3069, allocations: 0.6646 MB / 425.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.3089, allocations: 1.725 MB / 427.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.309, allocations: 0 / 427.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.309, allocations: 0 / 427.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.485e-05/0.309, allocations: 7.938 kB / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003023/0.3121, allocations: 1.507 MB / 428.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.3121, allocations: 8.031 kB / 428.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.3123, allocations: 148.3 kB / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007054/0.3131, allocations: 191.2 kB / 429.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.3145, allocations: 0.7937 MB / 429.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.405e-05/0.3146, allocations: 74 kB / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3147, allocations: 99.91 kB / 430.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3163, allocations: 0.9622 MB / 431.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.3164, allocations: 4 kB / 431.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.362e-05/0.3165, allocations: 40 kB / 431.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.3165, allocations: 24 kB / 431.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.3178, allocations: 0.6363 MB / 431.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005798/0.3236, allocations: 4.088 MB / 435.8 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009721/0.3246, allocations: 421.5 kB / 436.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.3249, allocations: 168.8 kB / 436.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.325, allocations: 7.984 kB / 436.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.325, allocations: 34.56 kB / 436.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.325, allocations: 4 kB / 436.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002435/0.3275, allocations: 1.315 MB / 437.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3275, allocations: 136.5 kB / 437.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.3286, allocations: 0.8976 MB / 438.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/0.3287, allocations: 33.7 kB / 438.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003888/0.3291, allocations: 0.5914 MB / 439.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.108e-05/0.3292, allocations: 142 kB / 439.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3294, allocations: 142.4 kB / 439.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3295, allocations: 334 kB / 440 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.3298, allocations: 176.8 kB / 440.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004956/0.3303, allocations: 0.4946 MB / 440.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008334/0.3311, allocations: 0.6789 MB / 441.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.3312, allocations: 4 kB / 441.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001141/0.3323, allocations: 0.747 MB / 442.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.3323, allocations: 19.16 kB / 442.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3324, allocations: 8 kB / 442.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000165/0.3325, allocations: 36.84 kB / 442.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005613/0.3331, allocations: 175.7 kB / 442.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.3343, allocations: 1.378 MB / 443.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005478/0.3348, allocations: 39.89 kB / 443.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-05/0.3349, allocations: 44.12 kB / 443.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005362/0.3354, allocations: 346.1 kB / 444.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005298/0.336, allocations: 490.5 kB / 444.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008205/0.3368, allocations: 0.6561 MB / 445.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.821e-06/0.3368, allocations: 7.938 kB / 445.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001073/0.3379, allocations: 0.7307 MB / 446 MB, free: 10.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.3379, allocations: 8 kB / 446.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3379, allocations: 12 kB / 446.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-05/0.338, allocations: 37.44 kB / 446.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.3386, allocations: 163.8 kB / 446.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009302/0.3395, allocations: 1.386 MB / 447.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.34, allocations: 35.89 kB / 447.7 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.3401, allocations: 36 kB / 447.7 MB, free: 9.043 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002309/0.3403, allocations: 235.9 kB / 447.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3405, allocations: 94.97 kB / 448 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008454/0.3413, allocations: 439.4 kB / 448.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3413, allocations: 4 kB / 448.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.3413, allocations: 0 / 448.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3414, allocations: 7.922 kB / 448.5 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.3433, allocations: 1.376 MB / 449.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3433, allocations: 4 kB / 449.9 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.3437, allocations: 84.11 kB / 449.9 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.004e-05/0.3438, allocations: 20.86 kB / 450 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.3438, allocations: 8 kB / 450 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009419/0.3448, allocations: 1.371 MB / 451.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3448, allocations: 0 / 451.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.3458, allocations: 0.7066 MB / 452 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002484/0.3461, allocations: 208 kB / 452.2 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3462, allocations: 12 kB / 452.3 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.3466, allocations: 23.97 kB / 452.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.3467, allocations: 31.91 kB / 452.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.3467, allocations: 8 kB / 452.3 MB, free: 4.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007874/0.3475, allocations: 0.6054 MB / 452.9 MB, free: 3.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3475, allocations: 4 kB / 452.9 MB, free: 3.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3486, allocations: 359.9 kB / 453.3 MB, free: 3.164 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.35, allocations: 1.278 MB / 454.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.3516, allocations: 0.9809 MB / 455.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3516, allocations: 0 / 455.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.352, allocations: 288.1 kB / 455.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.3532, allocations: 257.2 kB / 456.1 MB, free: 304 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.3647, allocations: 7.575 MB / 463.7 MB, free: 8.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007006/0.3655, allocations: 1.025 MB / 464.7 MB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005114/0.366, allocations: 123.3 kB / 464.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.3665, allocations: 391.3 kB / 465.2 MB, free: 6.695 MB / 382.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3665, allocations: 4 kB / 465.2 MB, free: 6.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07648/0.443, allocations: 20.08 MB / 485.3 MB, free: 2.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.74, allocations: 10.38 kB / 485.3 MB, free: 2.875 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches