Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.228, allocations: 50.54 MB / 408.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009165/0.2372, allocations: 8.872 MB / 417.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004786/0.242, allocations: 2.89 MB / 420.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.2431, allocations: 43.81 kB / 420.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.2448, allocations: 0.6094 MB / 421.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002063/0.2469, allocations: 0.7105 MB / 421.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.2478, allocations: 319.6 kB / 422.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.2505, allocations: 2.233 MB / 424.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002205/0.2527, allocations: 1.746 MB / 426.2 MB, free: 44 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.2547, allocations: 1.028 MB / 427.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.2566, allocations: 1.284 MB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005565/0.2572, allocations: 268 kB / 428.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008525/0.258, allocations: 367.8 kB / 429.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006794/0.2587, allocations: 0.7597 MB / 429.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.2598, allocations: 1.21 MB / 431.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.2629, allocations: 3.54 MB / 434.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2629, allocations: 0 / 434.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2629, allocations: 0 / 434.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.633e-05/0.263, allocations: 4 kB / 434.6 MB, free: 7.57 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.004927/0.2679, allocations: 2.493 MB / 437.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.268, allocations: 12.03 kB / 437.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000305/0.2683, allocations: 266 kB / 437.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006367/0.2689, allocations: 254.2 kB / 437.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.2712, allocations: 1.305 MB / 438.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.145e-05/0.2713, allocations: 139.7 kB / 439.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002455/0.2715, allocations: 176 kB / 439.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003515/0.2751, allocations: 2.374 MB / 441.6 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.095e-05/0.2751, allocations: 11.91 kB / 441.6 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001534/0.2753, allocations: 75.98 kB / 441.7 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.123e-05/0.2754, allocations: 91.5 kB / 441.8 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003128/0.2785, allocations: 1.966 MB / 443.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009963/0.2885, allocations: 7.05 MB / 450.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.2902, allocations: 1.281 MB / 452.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.2917, allocations: 0.8618 MB / 453 MB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002147/0.2919, allocations: 126 kB / 453.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.292, allocations: 43.56 kB / 453.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of pre-optimization done (n=87): time 2.896e-06/0.292, allocations: 0 / 453.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=104): time 0.01313/0.3051, allocations: 6.1 MB / 459.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.3052, allocations: 64.41 kB / 459.3 MB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.3068, allocations: 1.219 MB / 460.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.946e-05/0.3069, allocations: 45.7 kB / 460.6 MB, free: 13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005244/0.3074, allocations: 0.8691 MB / 461.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002735/0.3077, allocations: 358.8 kB / 461.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.308, allocations: 222.8 kB / 462 MB, free: 11.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3082, allocations: 353.9 kB / 462.3 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009894/0.3092, allocations: 0.6155 MB / 463 MB, free: 10.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.3103, allocations: 0.9227 MB / 463.9 MB, free: 9.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.3124, allocations: 1.639 MB / 465.5 MB, free: 7.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3125, allocations: 3.938 kB / 465.5 MB, free: 7.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003538/0.316, allocations: 2.227 MB / 467.7 MB, free: 5.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.316, allocations: 8.25 kB / 467.8 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.3161, allocations: 16 kB / 467.8 MB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.3171, allocations: 471.4 kB / 468.2 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009634/0.3181, allocations: 271.6 kB / 468.5 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006075/0.3242, allocations: 7.01 MB / 475.5 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.3253, allocations: 87.81 kB / 475.6 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.3254, allocations: 48 kB / 475.6 MB, free: 13.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009154/0.3263, allocations: 0.6066 MB / 476.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/0.3266, allocations: 134.3 kB / 476.4 MB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003349/0.33, allocations: 2.036 MB / 478.4 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.33, allocations: 8 kB / 478.4 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.33, allocations: 4 kB / 478.4 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.33, allocations: 3.984 kB / 478.4 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007087/0.3371, allocations: 4.219 MB / 482.6 MB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.3372, allocations: 4 kB / 482.6 MB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007581/0.3379, allocations: 176.2 kB / 482.8 MB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00135/0.3393, allocations: 0.5305 MB / 483.4 MB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-05/0.3394, allocations: 35.92 kB / 483.4 MB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007576/0.347, allocations: 8.608 MB / 492 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.347, allocations: 15.86 kB / 492 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004436/0.3514, allocations: 2.946 MB / 495 MB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007748/0.3522, allocations: 351.2 kB / 495.3 MB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/0.3525, allocations: 31.94 kB / 495.3 MB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008432/0.3534, allocations: 79.91 kB / 495.4 MB, free: 8.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3536, allocations: 84.77 kB / 495.5 MB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.809e-05/0.3537, allocations: 39.92 kB / 495.5 MB, free: 8.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001229/0.3549, allocations: 0.8383 MB / 496.4 MB, free: 7.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3549, allocations: 4 kB / 496.4 MB, free: 7.535 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001401/0.3563, allocations: 408 kB / 496.8 MB, free: 7.137 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.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 (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.004841/0.3612, allocations: 3.553 MB / 0.4886 GB, free: 3.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003325/0.3645, allocations: 2.173 MB / 0.4907 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3645, allocations: 4 kB / 0.4907 GB, free: 1.219 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002185/0.3667, allocations: 1.475 MB / 0.4922 GB, free: 15.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.3688, allocations: 390.4 kB / 0.4925 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/0.3922, allocations: 15.09 MB / 0.5073 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/0.3939, allocations: 1.63 MB / 0.5089 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.3949, allocations: 295.8 kB / 0.5091 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009793/0.3959, allocations: 0.6867 MB / 0.5098 GB, free: 12.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3959, allocations: 3.938 kB / 0.5098 GB, free: 12.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.259/0.6549, allocations: 37.9 MB / 0.5468 GB, free: 129 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/12.06, allocations: 5.953 kB / 0.5468 GB, free: 129 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches