Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001658/0.001658, allocations: 113.2 kB / 17.78 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.001954/0.001954, allocations: 207.8 kB / 18.74 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.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 67.88 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2634, allocations: 50.53 MB / 408.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02387/0.2873, allocations: 20.93 MB / 429.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01841/0.3057, allocations: 6.179 MB / 435.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006296/0.3121, allocations: 143.4 kB / 436 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006401/0.3185, allocations: 1.405 MB / 437.4 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008395/0.327, allocations: 1.972 MB / 439.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004186/0.3312, allocations: 1.282 MB / 440.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009411/0.3406, allocations: 6.159 MB / 446.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009849/0.3505, allocations: 5.446 MB / 452.3 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005382/0.3559, allocations: 2.87 MB / 455.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00631/0.3623, allocations: 3.503 MB / 458.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002839/0.3651, allocations: 0.7812 MB / 459.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004158/0.3693, allocations: 1.082 MB / 460.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003365/0.3727, allocations: 1.948 MB / 462.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00746/0.3802, allocations: 3.368 MB / 465.8 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01633/0.3966, allocations: 10.37 MB / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.3966, allocations: 0 / 476.2 MB, free: 13.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3966, allocations: 4 kB / 476.2 MB, free: 13.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004396/0.3971, allocations: 3.984 kB / 476.2 MB, free: 13.82 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02275/0.4199, allocations: 6.762 MB / 483 MB, free: 6.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.4199, allocations: 12.02 kB / 483 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002738/0.4227, allocations: 0.7 MB / 483.7 MB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006608/0.4293, allocations: 1.047 MB / 484.7 MB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01165/0.441, allocations: 3.617 MB / 488.4 MB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004975/0.4416, allocations: 382.7 kB / 488.7 MB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00221/0.4438, allocations: 0.5115 MB / 489.2 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01975/0.4635, allocations: 6.775 MB / 496 MB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002578/0.4638, allocations: 11.95 kB / 496 MB, free: 9.762 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001482/0.4654, allocations: 208 kB / 496.2 MB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000287/0.4657, allocations: 246.2 kB / 496.5 MB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/0.4793, allocations: 5.751 MB / 0.4905 GB, free: 3.555 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0408/0.5202, allocations: 20.99 MB / 0.511 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008926/0.5292, allocations: 8.801 MB / 0.5195 GB, free: 4.254 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003932/0.5331, allocations: 2.195 MB / 0.5217 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01136/0.5445, allocations: 6.196 MB / 0.5277 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.5446, allocations: 64.56 kB / 0.5278 GB, free: 11.58 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 5.35e-06/0.5446, allocations: 0 / 0.5278 GB, free: 11.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02111/0.5657, allocations: 10.5 MB / 0.5381 GB, free: 0.832 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.5658, allocations: 77.41 kB / 0.5381 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2283/0.7942, allocations: 2.923 MB / 0.541 GB, free: 120.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004443/0.7946, allocations: 64.17 kB / 0.5411 GB, free: 120.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.7965, allocations: 2.433 MB / 0.5434 GB, free: 119.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007162/0.7972, allocations: 0.8047 MB / 0.5442 GB, free: 119.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000704/0.7979, allocations: 0.5162 MB / 0.5447 GB, free: 118.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.476e-05/0.7979, allocations: 312.8 kB / 0.545 GB, free: 118.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/0.7997, allocations: 1.266 MB / 0.5463 GB, free: 118.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002113/0.8018, allocations: 2.172 MB / 0.5484 GB, free: 116.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004202/0.8061, allocations: 3.671 MB / 0.552 GB, free: 114.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-05/0.8061, allocations: 7.875 kB / 0.552 GB, free: 114.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006612/0.8127, allocations: 4.479 MB / 0.5563 GB, free: 112.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.8128, allocations: 20.03 kB / 0.5564 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-05/0.8128, allocations: 30.72 kB / 0.5564 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.8139, allocations: 0.54 MB / 0.5569 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002403/0.8163, allocations: 0.6768 MB / 0.5576 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007046/0.8234, allocations: 10.35 MB / 0.5677 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/0.8263, allocations: 180.4 kB / 0.5679 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/0.8267, allocations: 131.8 kB / 0.568 GB, free: 102.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00265/0.8293, allocations: 1.523 MB / 0.5695 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007391/0.8301, allocations: 337 kB / 0.5698 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005775/0.8359, allocations: 3.905 MB / 0.5736 GB, free: 97.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.8359, allocations: 24 kB / 0.5736 GB, free: 97.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.8359, allocations: 8 kB / 0.5736 GB, free: 97.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.836, allocations: 9.922 kB / 0.5736 GB, free: 97.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.8483, allocations: 8.503 MB / 0.5819 GB, free: 88.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.8483, allocations: 4 kB / 0.5819 GB, free: 88.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/0.8498, allocations: 380 kB / 0.5823 GB, free: 88.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001651/0.8515, allocations: 0.7442 MB / 0.583 GB, free: 87.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/0.8517, allocations: 55.98 kB / 0.5831 GB, free: 87.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/0.8626, allocations: 16.78 MB / 0.5995 GB, free: 69.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.8626, allocations: 4 kB / 0.5995 GB, free: 69.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007291/0.8699, allocations: 5.593 MB / 0.6049 GB, free: 64.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/0.8719, allocations: 0.6628 MB / 0.6056 GB, free: 63.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004619/0.8724, allocations: 52 kB / 0.6056 GB, free: 63.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.8739, allocations: 135.9 kB / 0.6058 GB, free: 63.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/0.8743, allocations: 165.6 kB / 0.6059 GB, free: 63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.8745, allocations: 59.98 kB / 0.606 GB, free: 62.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002631/0.8771, allocations: 1.98 MB / 0.6079 GB, free: 60.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.8771, allocations: 0 / 0.6079 GB, free: 60.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003772/0.8809, allocations: 0.9474 MB / 0.6088 GB, free: 60.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007675/0.8886, allocations: 6.307 MB / 0.615 GB, free: 53.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005619/0.8943, allocations: 3.979 MB / 0.6189 GB, free: 49.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/0.8943, allocations: 0 / 0.6189 GB, free: 49.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00394/0.8983, allocations: 2.683 MB / 0.6215 GB, free: 46.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00441/0.9027, allocations: 0.8609 MB / 0.6223 GB, free: 45.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04809/0.9508, allocations: 33.49 MB / 0.6551 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002475/0.9533, allocations: 3.302 MB / 0.6583 GB, free: 7.789 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.9554, allocations: 0.7619 MB / 0.659 GB, free: 7.023 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/0.9574, allocations: 1.948 MB / 0.6609 GB, free: 5.074 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.9574, allocations: 0 / 0.6609 GB, free: 5.074 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.148/1.105, allocations: 82.16 MB / 0.7412 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/16.76, allocations: 12.34 kB / 0.7412 GB, free: 3.551 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches