Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001412/0.001412, allocations: 117.6 kB / 17.79 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.001484/0.001484, allocations: 200.7 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.509/1.509, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.88 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2993, allocations: 50.54 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02869/0.328, allocations: 22.38 MB / 431.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.3435, allocations: 6.662 MB / 437.8 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004842/0.3484, allocations: 143.4 kB / 438 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005116/0.3535, allocations: 1.51 MB / 439.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008121/0.3617, allocations: 2.023 MB / 441.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004193/0.3659, allocations: 1.344 MB / 442.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3763, allocations: 6.578 MB / 449.4 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008537/0.3849, allocations: 5.594 MB / 455 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007712/0.3926, allocations: 3.006 MB / 458 MB, free: 16 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009888/0.4025, allocations: 3.678 MB / 461.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003445/0.406, allocations: 0.8164 MB / 462.5 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005067/0.4111, allocations: 1.113 MB / 463.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004507/0.4157, allocations: 2.037 MB / 465.7 MB, free: 8.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008899/0.4246, allocations: 3.543 MB / 469.2 MB, free: 4.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01822/0.4429, allocations: 10.87 MB / 480.1 MB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.4429, allocations: 0 / 480.1 MB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.443, allocations: 3.938 kB / 480.1 MB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004503/0.4434, allocations: 0 / 480.1 MB, free: 9.879 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0225/0.4659, allocations: 7.122 MB / 487.2 MB, free: 2.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.466, allocations: 8.031 kB / 487.2 MB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0025/0.4685, allocations: 0.7329 MB / 487.9 MB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006233/0.4748, allocations: 1.102 MB / 489 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01051/0.4853, allocations: 3.791 MB / 492.8 MB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005459/0.4859, allocations: 402.9 kB / 493.2 MB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002105/0.488, allocations: 0.5273 MB / 493.8 MB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01952/0.5075, allocations: 7.052 MB / 0.4891 GB, free: 4.902 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/0.5079, allocations: 19.89 kB / 0.4891 GB, free: 4.883 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001622/0.5095, allocations: 220 kB / 0.4893 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000333/0.5099, allocations: 258.6 kB / 0.4895 GB, free: 4.414 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/0.5251, allocations: 5.948 MB / 0.4954 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04718/0.5723, allocations: 22.39 MB / 0.5172 GB, free: 7.465 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01005/0.5824, allocations: 8.551 MB / 0.5256 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004454/0.5869, allocations: 2.273 MB / 0.5278 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01633/0.6032, allocations: 6.452 MB / 0.5341 GB, free: 5.043 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.363e-05/0.6034, allocations: 60.44 kB / 0.5342 GB, free: 4.973 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 6.912e-06/0.6034, allocations: 3.938 kB / 0.5342 GB, free: 4.969 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.2592/0.8626, allocations: 11.17 MB / 0.5451 GB, free: 118.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.8627, allocations: 77.03 kB / 0.5451 GB, free: 118.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004186/0.8669, allocations: 3.165 MB / 0.5482 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002298/0.8671, allocations: 73.38 kB / 0.5483 GB, free: 117.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.8686, allocations: 2.578 MB / 0.5508 GB, free: 115.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006312/0.8692, allocations: 0.8675 MB / 0.5517 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007434/0.8699, allocations: 0.5641 MB / 0.5522 GB, free: 114.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.168e-05/0.87, allocations: 301.1 kB / 0.5525 GB, free: 114.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/0.8719, allocations: 1.338 MB / 0.5538 GB, free: 114.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002185/0.8741, allocations: 2.335 MB / 0.5561 GB, free: 112.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004234/0.8783, allocations: 3.916 MB / 0.5599 GB, free: 109.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.746e-05/0.8784, allocations: 11.16 kB / 0.5599 GB, free: 109.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006817/0.8852, allocations: 4.743 MB / 0.5646 GB, free: 107.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.8853, allocations: 20.12 kB / 0.5646 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.194e-05/0.8853, allocations: 32 kB / 0.5646 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.8864, allocations: 0.5479 MB / 0.5651 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/0.8888, allocations: 0.7426 MB / 0.5659 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007095/0.8959, allocations: 10.45 MB / 0.5761 GB, free: 95.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003271/0.8992, allocations: 193.1 kB / 0.5763 GB, free: 95.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003166/0.8995, allocations: 144 kB / 0.5764 GB, free: 94.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * 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,12,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.003031/0.9026, allocations: 1.574 MB / 0.5779 GB, free: 93.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009705/0.9036, allocations: 365.7 kB / 0.5783 GB, free: 93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005714/0.9093, allocations: 4.082 MB / 0.5823 GB, free: 88.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.9093, allocations: 27.06 kB / 0.5823 GB, free: 88.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.9093, allocations: 8 kB / 0.5823 GB, free: 88.79 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.9094, allocations: 11.95 kB / 0.5823 GB, free: 88.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/0.9228, allocations: 8.991 MB / 0.5911 GB, free: 79.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.9229, allocations: 8 kB / 0.5911 GB, free: 79.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.9245, allocations: 400 kB / 0.5915 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.9262, allocations: 0.7601 MB / 0.5922 GB, free: 78.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.9264, allocations: 63.97 kB / 0.5923 GB, free: 78.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/0.9376, allocations: 16.9 MB / 0.6088 GB, free: 60.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.9377, allocations: 7.938 kB / 0.6088 GB, free: 60.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008073/0.9457, allocations: 5.888 MB / 0.6145 GB, free: 54.37 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/0.9478, allocations: 0.7173 MB / 0.6152 GB, free: 53.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009834/0.9489, allocations: 59.98 kB / 0.6153 GB, free: 53.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001711/0.9506, allocations: 140 kB / 0.6154 GB, free: 53.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/0.951, allocations: 185.6 kB / 0.6156 GB, free: 53.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.9512, allocations: 71.98 kB / 0.6157 GB, free: 53.19 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002976/0.9541, allocations: 2.143 MB / 0.6178 GB, free: 51.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9541, allocations: 0 / 0.6178 GB, free: 51.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004104/0.9583, allocations: 0.996 MB / 0.6187 GB, free: 50.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (198): * Single equations (assignments): 190 * 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,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007925/0.9662, allocations: 6.612 MB / 0.6252 GB, free: 43.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00548/0.9717, allocations: 4.161 MB / 0.6293 GB, free: 39.03 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/0.9717, allocations: 4 kB / 0.6293 GB, free: 39.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003552/0.9753, allocations: 2.774 MB / 0.632 GB, free: 36.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005876/0.9812, allocations: 0.968 MB / 0.6329 GB, free: 35.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06212/1.043, allocations: 35.7 MB / 0.6678 GB, free: 14.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006717/1.05, allocations: 3.412 MB / 0.6711 GB, free: 10.64 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003537/1.054, allocations: 0.8074 MB / 0.6719 GB, free: 9.832 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003884/1.058, allocations: 2.12 MB / 0.674 GB, free: 7.711 MB / 478.1 MB Notification: Performance of SimCode: time 1.633e-06/1.058, allocations: 0 / 0.674 GB, free: 7.711 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4364/1.494, allocations: 88.54 MB / 0.7604 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.64/19.13, allocations: 8.812 kB / 0.7604 GB, free: 181.5 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches