Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001306/0.001306, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.0013, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 71.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2677, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01234/0.2801, allocations: 9.663 MB / 418.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006475/0.2866, allocations: 3.154 MB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.2881, allocations: 55.75 kB / 421.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.2902, allocations: 0.6753 MB / 422.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002765/0.293, allocations: 0.7687 MB / 423.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.2941, allocations: 395.4 kB / 423.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003684/0.2978, allocations: 2.572 MB / 426 MB, free: 208 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00313/0.3009, allocations: 2.322 MB / 428.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.3031, allocations: 1.188 MB / 429.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002525/0.3056, allocations: 1.498 MB / 431.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006521/0.3063, allocations: 320 kB / 431.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.3074, allocations: 419.8 kB / 431.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001157/0.3086, allocations: 0.8961 MB / 432.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002286/0.3109, allocations: 1.423 MB / 434.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005397/0.3163, allocations: 4.184 MB / 438.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.3164, allocations: 0 / 438.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3164, allocations: 0 / 438.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.3165, allocations: 0 / 438.3 MB, free: 3.871 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007107/0.3236, allocations: 2.976 MB / 441.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3237, allocations: 8.031 kB / 441.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005873/0.3243, allocations: 316.2 kB / 441.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.3253, allocations: 311.2 kB / 441.9 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.3286, allocations: 1.551 MB / 443.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3288, allocations: 164.2 kB / 443.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000471/0.3293, allocations: 215.9 kB / 443.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005841/0.3351, allocations: 2.792 MB / 446.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.477e-05/0.3352, allocations: 11.98 kB / 446.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/0.3355, allocations: 83.98 kB / 446.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001428/0.3356, allocations: 108.2 kB / 446.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004922/0.3406, allocations: 2.351 MB / 449.1 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01628/0.3569, allocations: 8.522 MB / 457.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.3596, allocations: 1.706 MB / 459.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.3615, allocations: 0.9528 MB / 460.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003246/0.3618, allocations: 203.2 kB / 460.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.3619, allocations: 55.48 kB / 460.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.906e-06/0.3619, allocations: 0 / 460.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01411/0.376, allocations: 6.27 MB / 466.8 MB, free: 6.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3761, allocations: 68.41 kB / 466.9 MB, free: 6.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.3784, allocations: 1.438 MB / 468.3 MB, free: 4.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.3785, allocations: 49.7 kB / 468.4 MB, free: 4.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008965/0.3794, allocations: 1.063 MB / 469.5 MB, free: 3.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004253/0.3799, allocations: 432.3 kB / 469.9 MB, free: 3.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004552/0.3803, allocations: 259.5 kB / 470.1 MB, free: 3.137 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3805, allocations: 361.9 kB / 470.5 MB, free: 2.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.3818, allocations: 0.6949 MB / 471.2 MB, free: 2.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.3833, allocations: 1.066 MB / 472.2 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002906/0.3863, allocations: 1.868 MB / 474.1 MB, free: 14.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.3863, allocations: 4 kB / 474.1 MB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004623/0.3909, allocations: 2.426 MB / 476.5 MB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.391, allocations: 8 kB / 476.6 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.369e-05/0.391, allocations: 15.94 kB / 476.6 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.3921, allocations: 415.3 kB / 477 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.3934, allocations: 331.5 kB / 477.3 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007924/0.4013, allocations: 7.042 MB / 484.3 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.4028, allocations: 99.84 kB / 484.4 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.4029, allocations: 59.98 kB / 484.5 MB, free: 3.973 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(3,11,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.00127/0.4042, allocations: 0.6963 MB / 485.2 MB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003711/0.4046, allocations: 166.9 kB / 485.4 MB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00407/0.4087, allocations: 2.135 MB / 487.5 MB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.4087, allocations: 15.98 kB / 487.5 MB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.547e-06/0.4087, allocations: 4 kB / 487.5 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.4087, allocations: 3.984 kB / 487.5 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008558/0.4173, allocations: 4.567 MB / 492.1 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.4174, allocations: 4 kB / 492.1 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.4183, allocations: 207.7 kB / 492.3 MB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.4196, allocations: 458.7 kB / 492.7 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.4197, allocations: 35.98 kB / 492.8 MB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00926/0.429, allocations: 8.625 MB / 0.4896 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.429, allocations: 7.938 kB / 0.4897 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00573/0.4347, allocations: 3.116 MB / 0.4927 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009095/0.4357, allocations: 379.9 kB / 0.4931 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002904/0.436, allocations: 31.98 kB / 0.4931 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009762/0.437, allocations: 87.84 kB / 0.4932 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.4373, allocations: 96.75 kB / 0.4933 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.968e-05/0.4374, allocations: 43.98 kB / 0.4933 GB, free: 14.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.4391, allocations: 0.9849 MB / 0.4943 GB, free: 13.47 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4391, allocations: 4 kB / 0.4943 GB, free: 13.47 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001768/0.4409, allocations: 463.9 kB / 0.4947 GB, free: 13.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,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.006057/0.447, allocations: 3.746 MB / 0.4984 GB, free: 9.172 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004123/0.4511, allocations: 2.229 MB / 0.5005 GB, free: 6.883 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.4512, allocations: 0 / 0.5005 GB, free: 6.883 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.4538, allocations: 1.45 MB / 0.502 GB, free: 5.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.4562, allocations: 415.6 kB / 0.5024 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02982/0.486, allocations: 16.93 MB / 0.5189 GB, free: 3.363 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002214/0.4883, allocations: 1.807 MB / 0.5207 GB, free: 1.523 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001245/0.4895, allocations: 365.6 kB / 0.521 GB, free: 1.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/0.4909, allocations: 0.8195 MB / 0.5218 GB, free: 348 kB / 446.1 MB Notification: Performance of SimCode: time 3.186e-06/0.4909, allocations: 0 / 0.5218 GB, free: 348 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.291/0.7819, allocations: 41.92 MB / 0.5627 GB, free: 110.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.72, allocations: 9.75 kB / 0.5628 GB, free: 110.3 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches