Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 4.0.0+maint.om/package.mo): time 0.00168/0.001687, allocations: 99.02 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.07/2.07, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002687/0.002687, allocations: 55.92 kB / 280.8 MB, free: 3.027 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1697, allocations: 46.62 MB / 327.4 MB, free: 4.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.07571/0.2455, allocations: 37.34 MB / 364.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03291/0.2785, allocations: 10.02 MB / 374.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01156/0.2901, allocations: 235.2 kB / 375 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3535/0.6437, allocations: 9.079 MB / 384.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02813/0.6719, allocations: 3.97 MB / 388.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0142/0.6861, allocations: 2.415 MB / 390.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03343/0.7196, allocations: 14.16 MB / 404.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07471/0.7944, allocations: 26.01 MB / 430.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02155/0.816, allocations: 7.234 MB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02332/0.8394, allocations: 8.019 MB / 445.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009411/0.8489, allocations: 2.042 MB / 447.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01288/0.8618, allocations: 2.44 MB / 450.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01018/0.8721, allocations: 4.091 MB / 454.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02204/0.8942, allocations: 7.894 MB / 462.4 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03795/0.9322, allocations: 26.83 MB / 489.2 MB, free: 13.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.9323, allocations: 0 / 489.2 MB, free: 13.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9323, allocations: 3.938 kB / 489.2 MB, free: 13.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008946/0.9332, allocations: 4 kB / 489.2 MB, free: 13.04 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.069/1.002, allocations: 16.07 MB / 0.4934 GB, free: 12.97 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/1.002, allocations: 15.89 kB / 0.4934 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01177/1.014, allocations: 1.959 MB / 0.4953 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04626/1.06, allocations: 7.357 MB / 0.5025 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02454/1.085, allocations: 7.727 MB / 0.5101 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001234/1.086, allocations: 0.9205 MB / 0.511 GB, free: 11.06 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005763/1.092, allocations: 1.21 MB / 0.5122 GB, free: 9.859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05674/1.149, allocations: 19.23 MB / 0.5309 GB, free: 6.566 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000728/1.15, allocations: 19.81 kB / 0.531 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005241/1.155, allocations: 0.4993 MB / 0.5314 GB, free: 6.059 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009215/1.156, allocations: 0.6776 MB / 0.5321 GB, free: 5.379 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5047/1.661, allocations: 17.67 MB / 0.5494 GB, free: 136.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1123/1.773, allocations: 63.88 MB / 0.6118 GB, free: 89.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02836/1.801, allocations: 38.67 MB / 0.6495 GB, free: 45.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007121/1.809, allocations: 4.204 MB / 0.6536 GB, free: 41.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02178/1.83, allocations: 12.23 MB / 0.6656 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/1.83, allocations: 85.78 kB / 0.6656 GB, free: 29.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=402): time 7.304e-06/1.83, allocations: 0 / 0.6656 GB, free: 29.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=412): time 0.04437/1.875, allocations: 20.06 MB / 0.6852 GB, free: 8.953 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/1.875, allocations: 120.4 kB / 0.6853 GB, free: 8.816 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009707/1.885, allocations: 5.3 MB / 0.6905 GB, free: 3.531 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001197/1.886, allocations: 93.7 kB / 0.6906 GB, free: 3.434 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005562/1.891, allocations: 5.497 MB / 0.696 GB, free: 13.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002/1.894, allocations: 1.435 MB / 0.6974 GB, free: 12.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002703/1.896, allocations: 1.303 MB / 0.6987 GB, free: 11.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/1.896, allocations: 305.1 kB / 0.6989 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005224/1.902, allocations: 2.91 MB / 0.7018 GB, free: 7.949 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007635/1.909, allocations: 5.64 MB / 0.7073 GB, free: 1.039 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2514/2.161, allocations: 9.111 MB / 0.7162 GB, free: 137.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/2.161, allocations: 26.5 kB / 0.7162 GB, free: 137.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.02245/2.183, allocations: 9.999 MB / 0.726 GB, free: 133.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.72e-05/2.183, allocations: 43.41 kB / 0.726 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/2.184, allocations: 91 kB / 0.7261 GB, free: 133.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003284/2.187, allocations: 1.137 MB / 0.7272 GB, free: 133.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005847/2.193, allocations: 1.527 MB / 0.7287 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/2.207, allocations: 13.48 MB / 0.7419 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00642/2.214, allocations: 368 kB / 0.7422 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001458/2.215, allocations: 343.6 kB / 0.7426 GB, free: 123.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * 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,52.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.009325/2.225, allocations: 4.298 MB / 0.7468 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/2.226, allocations: 0.5425 MB / 0.7473 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/2.239, allocations: 7.118 MB / 0.7542 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01073/2.25, allocations: 4.229 MB / 0.7584 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.437e-05/2.25, allocations: 18.88 kB / 0.7584 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001441/2.25, allocations: 19.92 kB / 0.7584 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05293/2.303, allocations: 17.04 MB / 0.775 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.172e-05/2.303, allocations: 4 kB / 0.775 GB, free: 104.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004977/2.308, allocations: 0.6789 MB / 0.7757 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005141/2.314, allocations: 1.203 MB / 0.7769 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001112/2.315, allocations: 99.72 kB / 0.777 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02789/2.343, allocations: 17.39 MB / 0.794 GB, free: 84.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/2.343, allocations: 8 kB / 0.794 GB, free: 84.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.027/2.37, allocations: 10.29 MB / 0.804 GB, free: 74.67 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005619/2.375, allocations: 1.123 MB / 0.8051 GB, free: 73.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003006/2.378, allocations: 87.94 kB / 0.8052 GB, free: 73.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006681/2.385, allocations: 215.8 kB / 0.8054 GB, free: 73.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002176/2.387, allocations: 299.4 kB / 0.8057 GB, free: 72.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001343/2.389, allocations: 124 kB / 0.8058 GB, free: 72.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01271/2.402, allocations: 3.546 MB / 0.8093 GB, free: 69.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.142e-06/2.402, allocations: 4 kB / 0.8093 GB, free: 69.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0163/2.418, allocations: 1.986 MB / 0.8112 GB, free: 67.3 MB / 462.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.0316/2.45, allocations: 11.03 MB / 0.822 GB, free: 56.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03957/2.489, allocations: 10.97 MB / 0.8327 GB, free: 45.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.448e-05/2.489, allocations: 4.188 kB / 0.8327 GB, free: 45.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0126/2.502, allocations: 4.079 MB / 0.8367 GB, free: 40.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01731/2.519, allocations: 1.446 MB / 0.8381 GB, free: 39.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5249/3.044, allocations: 86.76 MB / 0.9228 GB, free: 126.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01956/3.064, allocations: 7.454 MB / 0.9301 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01269/3.077, allocations: 2.079 MB / 0.9321 GB, free: 122.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01134/3.088, allocations: 4.393 MB / 0.9364 GB, free: 118.6 MB / 478.1 MB Notification: Performance of SimCode: time 2.825e-06/3.088, allocations: 0 / 0.9364 GB, free: 118.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8262/3.914, allocations: 161.9 MB / 1.094 GB, free: 131.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.24/25.15, allocations: 7.656 kB / 1.094 GB, free: 131.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches