Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001093, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001323, allocations: 72.45 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09297, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2197/0.3127, allocations: 37.9 MB / 395.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02274/0.3355, allocations: 10.29 MB / 405.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01062/0.3461, allocations: 275.4 kB / 406.1 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02243/0.3686, allocations: 9.111 MB / 415.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.3824, allocations: 3.915 MB / 419.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007775/0.3902, allocations: 2.436 MB / 421.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02071/0.4109, allocations: 14.12 MB / 435.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03942/0.4504, allocations: 25.79 MB / 461.4 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01074/0.4611, allocations: 7.172 MB / 468.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01164/0.4728, allocations: 8.066 MB / 476.7 MB, free: 4.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005327/0.4782, allocations: 2.027 MB / 478.7 MB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007492/0.4857, allocations: 2.46 MB / 481.2 MB, free: 240 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005876/0.4916, allocations: 4.033 MB / 485.2 MB, free: 12.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0135/0.5051, allocations: 7.832 MB / 493 MB, free: 4.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02857/0.5337, allocations: 26.82 MB / 0.5077 GB, free: 9.426 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.5338, allocations: 0 / 0.5077 GB, free: 9.426 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5338, allocations: 0 / 0.5077 GB, free: 9.426 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006389/0.5344, allocations: 0 / 0.5077 GB, free: 9.426 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04607/0.5805, allocations: 15.95 MB / 0.5232 GB, free: 9.363 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.5806, allocations: 12.03 kB / 0.5232 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006234/0.5868, allocations: 1.927 MB / 0.5251 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03745/0.6243, allocations: 6.416 MB / 0.5314 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1832/0.8075, allocations: 8.35 MB / 0.5395 GB, free: 126.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007556/0.8083, allocations: 0.9046 MB / 0.5404 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003755/0.8121, allocations: 1.201 MB / 0.5416 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04273/0.8548, allocations: 18.77 MB / 0.5599 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003812/0.8553, allocations: 21.3 kB / 0.56 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00245/0.8577, allocations: 0.4957 MB / 0.5604 GB, free: 117.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006823/0.8584, allocations: 0.6447 MB / 0.5611 GB, free: 117.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02741/0.8858, allocations: 17 MB / 0.5777 GB, free: 104.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08265/0.9685, allocations: 63.93 MB / 0.6401 GB, free: 39.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02091/0.9895, allocations: 29.99 MB / 0.6694 GB, free: 5.852 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005699/0.9952, allocations: 4.055 MB / 0.6734 GB, free: 1.785 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01865/1.014, allocations: 10.42 MB / 0.6835 GB, free: 7.332 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.221e-05/1.014, allocations: 73.8 kB / 0.6836 GB, free: 7.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=402): time 5.721e-06/1.014, allocations: 0 / 0.6836 GB, free: 7.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=412): time 0.04721/1.061, allocations: 20.11 MB / 0.7032 GB, free: 2.809 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/1.061, allocations: 120.4 kB / 0.7034 GB, free: 2.668 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009529/1.071, allocations: 5.19 MB / 0.7084 GB, free: 13.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007997/1.072, allocations: 97.7 kB / 0.7085 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003736/1.075, allocations: 5.374 MB / 0.7138 GB, free: 7.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001712/1.077, allocations: 1.419 MB / 0.7151 GB, free: 6.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002057/1.079, allocations: 1.243 MB / 0.7164 GB, free: 5.316 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/1.079, allocations: 305.1 kB / 0.7167 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00443/1.084, allocations: 2.847 MB / 0.7194 GB, free: 2.164 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1941/1.278, allocations: 5.349 MB / 0.7247 GB, free: 155.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.289, allocations: 8.741 MB / 0.7332 GB, free: 151.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/1.289, allocations: 23.41 kB / 0.7332 GB, free: 151.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01816/1.308, allocations: 9.675 MB / 0.7427 GB, free: 147.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.922e-05/1.308, allocations: 40.48 kB / 0.7427 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/1.308, allocations: 81.12 kB / 0.7428 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003175/1.311, allocations: 1.126 MB / 0.7439 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005978/1.317, allocations: 1.447 MB / 0.7453 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/1.331, allocations: 13.49 MB / 0.7585 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005166/1.336, allocations: 358.7 kB / 0.7588 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009108/1.337, allocations: 320.5 kB / 0.7591 GB, free: 137.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,1,100.0%), (10,46,50.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.006013/1.343, allocations: 4.244 MB / 0.7633 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001227/1.344, allocations: 0.5267 MB / 0.7638 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/1.355, allocations: 7.11 MB / 0.7707 GB, free: 132.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005711/1.361, allocations: 4.237 MB / 0.7749 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-05/1.361, allocations: 15.5 kB / 0.7749 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-05/1.361, allocations: 18.75 kB / 0.7749 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02281/1.384, allocations: 16.97 MB / 0.7915 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/1.384, allocations: 4 kB / 0.7915 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002776/1.387, allocations: 0.687 MB / 0.7921 GB, free: 119.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002976/1.39, allocations: 1.186 MB / 0.7933 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000327/1.39, allocations: 101.5 kB / 0.7934 GB, free: 118.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.405, allocations: 17.4 MB / 0.8104 GB, free: 100.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.405, allocations: 7.938 kB / 0.8104 GB, free: 100.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.418, allocations: 10.27 MB / 0.8204 GB, free: 90.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002293/1.42, allocations: 1.123 MB / 0.8215 GB, free: 89.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007709/1.421, allocations: 84.06 kB / 0.8216 GB, free: 89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/1.424, allocations: 211.8 kB / 0.8218 GB, free: 88.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000618/1.424, allocations: 318 kB / 0.8221 GB, free: 88.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/1.425, allocations: 120 kB / 0.8222 GB, free: 88.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004241/1.429, allocations: 3.481 MB / 0.8256 GB, free: 84.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.429, allocations: 0 / 0.8256 GB, free: 84.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006152/1.435, allocations: 1.965 MB / 0.8275 GB, free: 82.93 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01337/1.448, allocations: 11.01 MB / 0.8383 GB, free: 71.75 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0195/1.468, allocations: 10.84 MB / 0.8489 GB, free: 60.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.468, allocations: 0 / 0.8489 GB, free: 60.86 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005554/1.474, allocations: 4.069 MB / 0.8529 GB, free: 56.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00622/1.48, allocations: 1.456 MB / 0.8543 GB, free: 55.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2765/1.756, allocations: 84.37 MB / 0.9367 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007151/1.764, allocations: 7.376 MB / 0.9439 GB, free: 139.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005655/1.769, allocations: 2.004 MB / 0.9458 GB, free: 139.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004988/1.774, allocations: 4.404 MB / 0.9501 GB, free: 135.3 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/1.774, allocations: 0 / 0.9501 GB, free: 135.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.391/2.165, allocations: 160 MB / 1.106 GB, free: 151.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/15, allocations: 13.94 kB / 1.106 GB, free: 151.9 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches