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.001757/0.001757, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002055/0.002055, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2306, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009996/0.2406, allocations: 9.671 MB / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005404/0.2461, allocations: 3.154 MB / 421.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.2475, allocations: 55.75 kB / 421.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.2495, allocations: 0.7143 MB / 422.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.2519, allocations: 0.8038 MB / 423.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009231/0.2529, allocations: 391.4 kB / 423.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00279/0.2557, allocations: 2.56 MB / 426.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00256/0.2582, allocations: 2.326 MB / 428.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2599, allocations: 1.203 MB / 429.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002067/0.262, allocations: 1.495 MB / 431.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004992/0.2625, allocations: 320 kB / 431.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008548/0.2633, allocations: 419.8 kB / 431.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007846/0.2641, allocations: 0.8999 MB / 432.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.2656, allocations: 1.423 MB / 434.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004022/0.2696, allocations: 4.177 MB / 438.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2696, allocations: 0 / 438.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2696, allocations: 0 / 438.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.999e-05/0.2697, allocations: 0 / 438.3 MB, free: 3.762 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.00581/0.2755, allocations: 2.984 MB / 441.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.2756, allocations: 15.97 kB / 441.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003692/0.276, allocations: 304.2 kB / 441.6 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007795/0.2768, allocations: 307.2 kB / 441.9 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.2792, allocations: 1.559 MB / 443.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.2793, allocations: 168.2 kB / 443.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/0.2796, allocations: 211.9 kB / 443.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004256/0.2839, allocations: 2.796 MB / 446.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-05/0.284, allocations: 7.984 kB / 446.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.2842, allocations: 88 kB / 446.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.2843, allocations: 104.2 kB / 446.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003899/0.2882, allocations: 2.347 MB / 449.2 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01253/0.3007, allocations: 8.533 MB / 457.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.303, allocations: 1.694 MB / 459.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/0.3047, allocations: 0.9567 MB / 460.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002762/0.305, allocations: 207.2 kB / 460.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.305, allocations: 43.5 kB / 460.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.866e-06/0.305, allocations: 0 / 460.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01283/0.3179, allocations: 6.272 MB / 466.9 MB, free: 6.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.3179, allocations: 64.41 kB / 467 MB, free: 6.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.32, allocations: 1.441 MB / 468.4 MB, free: 4.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.491e-05/0.3201, allocations: 45.7 kB / 468.5 MB, free: 4.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007109/0.3208, allocations: 1.067 MB / 469.5 MB, free: 3.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.3211, allocations: 440.3 kB / 470 MB, free: 3.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.3215, allocations: 259.5 kB / 470.2 MB, free: 3.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3217, allocations: 357.9 kB / 470.6 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3227, allocations: 0.6871 MB / 471.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.324, allocations: 1.073 MB / 472.3 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002486/0.3265, allocations: 1.871 MB / 474.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3266, allocations: 4 kB / 474.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004132/0.3307, allocations: 2.418 MB / 476.6 MB, free: 12.24 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.3308, allocations: 20.02 kB / 476.6 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.3308, allocations: 11.94 kB / 476.6 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009634/0.3318, allocations: 422.7 kB / 477.1 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3329, allocations: 327.5 kB / 477.4 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006647/0.3396, allocations: 7.03 MB / 484.4 MB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.341, allocations: 103.8 kB / 484.5 MB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.3412, allocations: 63.98 kB / 484.6 MB, free: 3.855 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.001246/0.3425, allocations: 0.6885 MB / 485.3 MB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003951/0.3429, allocations: 170.9 kB / 485.4 MB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.3466, allocations: 2.138 MB / 487.6 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3467, allocations: 12 kB / 487.6 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.3467, allocations: 11.94 kB / 487.6 MB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.3467, allocations: 7.969 kB / 487.6 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007997/0.3547, allocations: 4.56 MB / 492.2 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.3548, allocations: 0 / 492.2 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000898/0.3557, allocations: 215.7 kB / 492.4 MB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.3568, allocations: 439.2 kB / 492.8 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.3569, allocations: 35.98 kB / 492.8 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007828/0.3648, allocations: 8.64 MB / 0.4897 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.3648, allocations: 7.938 kB / 0.4897 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004985/0.3698, allocations: 3.112 MB / 0.4928 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008264/0.3707, allocations: 387.9 kB / 0.4931 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/0.371, allocations: 28 kB / 0.4932 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009788/0.372, allocations: 83.84 kB / 0.4932 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.3723, allocations: 96.75 kB / 0.4933 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.333e-05/0.3724, allocations: 39.98 kB / 0.4934 GB, free: 14.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00158/0.374, allocations: 0.9888 MB / 0.4943 GB, free: 13.36 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.374, allocations: 0 / 0.4943 GB, free: 13.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001705/0.3757, allocations: 463.9 kB / 0.4948 GB, free: 12.9 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.005412/0.3811, allocations: 3.749 MB / 0.4984 GB, free: 9.062 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003767/0.3849, allocations: 2.231 MB / 0.5006 GB, free: 6.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.976e-06/0.3849, allocations: 3.984 kB / 0.5006 GB, free: 6.766 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002301/0.3872, allocations: 1.447 MB / 0.502 GB, free: 5.266 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/0.3896, allocations: 419.7 kB / 0.5024 GB, free: 4.867 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02598/0.4156, allocations: 16.93 MB / 0.519 GB, free: 3.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/0.4172, allocations: 1.803 MB / 0.5207 GB, free: 1.414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.4184, allocations: 365.6 kB / 0.5211 GB, free: 1.051 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/0.4195, allocations: 0.8195 MB / 0.5219 GB, free: 236 kB / 446.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4195, allocations: 0 / 0.5219 GB, free: 236 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2528/0.6723, allocations: 41.93 MB / 0.5628 GB, free: 110 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.71, allocations: 4.062 kB / 0.5628 GB, free: 110 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.0.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