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.001417/0.001417, 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.001544/0.001544, 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.478/1.478, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 67.88 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3197, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04359/0.3633, allocations: 37.89 MB / 446.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02326/0.3866, allocations: 10.3 MB / 457 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007633/0.3943, allocations: 275.1 kB / 457.3 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02284/0.4172, allocations: 9.1 MB / 466.4 MB, free: 7.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01586/0.4331, allocations: 3.922 MB / 470.3 MB, free: 3.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008463/0.4416, allocations: 2.422 MB / 472.7 MB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02312/0.4647, allocations: 14.23 MB / 486.9 MB, free: 3.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04465/0.5094, allocations: 25.63 MB / 0.5005 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01426/0.5237, allocations: 7.184 MB / 0.5076 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01493/0.5387, allocations: 8.051 MB / 0.5154 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006843/0.5456, allocations: 2.023 MB / 0.5174 GB, free: 8.012 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008769/0.5544, allocations: 2.449 MB / 0.5198 GB, free: 5.562 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007242/0.5617, allocations: 4.025 MB / 0.5237 GB, free: 1.527 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01753/0.5793, allocations: 7.829 MB / 0.5314 GB, free: 9.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5171/1.096, allocations: 27.05 MB / 0.5578 GB, free: 56.76 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/1.097, allocations: 0 / 0.5578 GB, free: 56.76 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.014e-06/1.097, allocations: 5.375 kB / 0.5578 GB, free: 56.76 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000948/1.097, allocations: 0 / 0.5578 GB, free: 56.76 MB / 462.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.05415/1.152, allocations: 16.18 MB / 0.5736 GB, free: 49.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.963e-05/1.152, allocations: 9.125 kB / 0.5736 GB, free: 49.56 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009149/1.161, allocations: 1.932 MB / 0.5755 GB, free: 49.1 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.038/1.199, allocations: 6.516 MB / 0.5818 GB, free: 46.56 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01863/1.218, allocations: 8.625 MB / 0.5903 GB, free: 41.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008607/1.218, allocations: 0.9023 MB / 0.5912 GB, free: 40.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00594/1.224, allocations: 1.194 MB / 0.5923 GB, free: 40.47 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04999/1.274, allocations: 18.77 MB / 0.6107 GB, free: 21.88 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006199/1.275, allocations: 23.56 kB / 0.6107 GB, free: 21.86 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005142/1.28, allocations: 0.4894 MB / 0.6112 GB, free: 21.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005767/1.281, allocations: 0.6576 MB / 0.6118 GB, free: 20.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03548/1.316, allocations: 17 MB / 0.6284 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1262/1.443, allocations: 63.36 MB / 0.6903 GB, free: 3.625 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03209/1.475, allocations: 30.01 MB / 0.7196 GB, free: 2.105 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007996/1.483, allocations: 4.018 MB / 0.7235 GB, free: 14.09 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02341/1.506, allocations: 10.39 MB / 0.7337 GB, free: 3.711 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.3e-05/1.506, allocations: 77.8 kB / 0.7337 GB, free: 3.625 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.171e-06/1.506, allocations: 0 / 0.7337 GB, free: 3.625 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.3516/1.858, allocations: 20.38 MB / 0.7536 GB, free: 214.5 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/1.858, allocations: 122.9 kB / 0.7537 GB, free: 214.4 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01058/1.869, allocations: 5.197 MB / 0.7588 GB, free: 214.1 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009274/1.87, allocations: 95.89 kB / 0.7589 GB, free: 214.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003357/1.873, allocations: 5.548 MB / 0.7643 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001844/1.875, allocations: 1.497 MB / 0.7658 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003179/1.878, allocations: 1.249 MB / 0.767 GB, free: 210 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.439e-05/1.878, allocations: 306.5 kB / 0.7673 GB, free: 209.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004488/1.883, allocations: 2.848 MB / 0.7701 GB, free: 208.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006155/1.889, allocations: 5.344 MB / 0.7753 GB, free: 204.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/1.9, allocations: 8.733 MB / 0.7838 GB, free: 198.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001165/1.9, allocations: 23.59 kB / 0.7839 GB, free: 198.2 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.02249/1.922, allocations: 9.709 MB / 0.7933 GB, free: 194.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/1.923, allocations: 37.72 kB / 0.7934 GB, free: 194.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002869/1.923, allocations: 82.66 kB / 0.7935 GB, free: 194.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003512/1.927, allocations: 1.121 MB / 0.7945 GB, free: 193.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00608/1.933, allocations: 1.449 MB / 0.796 GB, free: 193.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/1.949, allocations: 13.48 MB / 0.8091 GB, free: 181.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007654/1.956, allocations: 365 kB / 0.8095 GB, free: 181 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002014/1.958, allocations: 323.5 kB / 0.8098 GB, free: 180.7 MB / 0.5763 GB 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.0103/1.969, allocations: 4.238 MB / 0.8139 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002351/1.971, allocations: 0.5588 MB / 0.8145 GB, free: 176.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.987, allocations: 7.105 MB / 0.8214 GB, free: 170.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008241/1.995, allocations: 4.229 MB / 0.8255 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-05/1.995, allocations: 16 kB / 0.8256 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/1.996, allocations: 18.94 kB / 0.8256 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04433/2.04, allocations: 16.96 MB / 0.8421 GB, free: 150.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.042e-05/2.04, allocations: 8.125 kB / 0.8421 GB, free: 150.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003639/2.044, allocations: 0.6865 MB / 0.8428 GB, free: 149.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003622/2.047, allocations: 1.182 MB / 0.844 GB, free: 148.2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001026/2.048, allocations: 99.97 kB / 0.8441 GB, free: 148.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01777/2.066, allocations: 17.4 MB / 0.861 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/2.066, allocations: 7.938 kB / 0.8611 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02025/2.086, allocations: 10.31 MB / 0.8711 GB, free: 119.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004177/2.091, allocations: 1.142 MB / 0.8722 GB, free: 118.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/2.093, allocations: 83.98 kB / 0.8723 GB, free: 118.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/2.098, allocations: 211.8 kB / 0.8725 GB, free: 118 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/2.099, allocations: 307.3 kB / 0.8728 GB, free: 117.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008707/2.1, allocations: 124 kB / 0.8729 GB, free: 117.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00752/2.108, allocations: 3.485 MB / 0.8763 GB, free: 114.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.81e-07/2.108, allocations: 1.312 kB / 0.8763 GB, free: 114.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01112/2.119, allocations: 1.953 MB / 0.8782 GB, free: 112.1 MB / 0.5763 GB 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.02086/2.14, allocations: 11.04 MB / 0.889 GB, free: 100.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01469/2.154, allocations: 7.71 MB / 0.8966 GB, free: 93.12 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/2.154, allocations: 0 / 0.8966 GB, free: 93.12 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007905/2.162, allocations: 4.089 MB / 0.9005 GB, free: 88.96 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01198/2.174, allocations: 1.461 MB / 0.902 GB, free: 87.55 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.149/2.323, allocations: 66.91 MB / 0.9673 GB, free: 17.36 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.296/2.62, allocations: 7.371 MB / 0.9745 GB, free: 212.2 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007027/2.627, allocations: 2.001 MB / 0.9765 GB, free: 212.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008446/2.635, allocations: 4.407 MB / 0.9808 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.403e-06/2.635, allocations: 0 / 0.9808 GB, free: 211.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2466/2.882, allocations: 157.5 MB / 1.135 GB, free: 74.55 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.94/26.82, allocations: 12.66 kB / 1.135 GB, free: 74.54 MB / 0.5763 GB (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.1.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