Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.91 kB / 365.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1191, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2623/0.3814, allocations: 37.4 MB / 455.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.4031, allocations: 10.06 MB / 465.3 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008035/0.4112, allocations: 271.7 kB / 465.5 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02181/0.433, allocations: 9.22 MB / 474.8 MB, free: 3.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0151/0.4481, allocations: 4.02 MB / 478.8 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007975/0.4561, allocations: 2.393 MB / 481.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0223/0.4784, allocations: 14.09 MB / 495.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03518/0.5135, allocations: 19.32 MB / 0.5025 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0141/0.5276, allocations: 7.215 MB / 0.5096 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01532/0.543, allocations: 7.98 MB / 0.5174 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006799/0.5498, allocations: 2.023 MB / 0.5193 GB, free: 5.699 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0106/0.5604, allocations: 2.433 MB / 0.5217 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007446/0.5678, allocations: 4.052 MB / 0.5257 GB, free: 15.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01753/0.5853, allocations: 7.801 MB / 0.5333 GB, free: 7.371 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04438/0.6297, allocations: 27.01 MB / 0.5597 GB, free: 12.27 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.6297, allocations: 0 / 0.5597 GB, free: 12.27 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.6297, allocations: 0 / 0.5597 GB, free: 12.27 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008261/0.6306, allocations: 0 / 0.5597 GB, free: 12.27 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.05502/0.6856, allocations: 16.13 MB / 0.5754 GB, free: 12.01 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.6856, allocations: 11.89 kB / 0.5754 GB, free: 12 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007516/0.6932, allocations: 1.931 MB / 0.5773 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03742/0.7306, allocations: 6.466 MB / 0.5836 GB, free: 3.57 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02337/0.7539, allocations: 8.599 MB / 0.592 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/0.7551, allocations: 0.8992 MB / 0.5929 GB, free: 9.992 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005065/0.7602, allocations: 1.195 MB / 0.5941 GB, free: 8.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05269/0.8129, allocations: 18.77 MB / 0.6124 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006742/0.8135, allocations: 19.91 kB / 0.6124 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004278/0.8178, allocations: 0.4921 MB / 0.6129 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008247/0.8186, allocations: 0.6537 MB / 0.6135 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04044/0.8591, allocations: 17.01 MB / 0.6302 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5248/1.384, allocations: 62.02 MB / 0.6907 GB, free: 109.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02172/1.406, allocations: 29.23 MB / 0.7193 GB, free: 81.33 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005892/1.412, allocations: 3.645 MB / 0.7228 GB, free: 79.43 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01669/1.428, allocations: 10.1 MB / 0.7327 GB, free: 72.61 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/1.428, allocations: 79.2 kB / 0.7328 GB, free: 72.54 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 6.743e-06/1.428, allocations: 0 / 0.7328 GB, free: 72.54 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.03693/1.465, allocations: 20.33 MB / 0.7526 GB, free: 54.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/1.465, allocations: 120.4 kB / 0.7527 GB, free: 54.57 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007101/1.472, allocations: 5.167 MB / 0.7578 GB, free: 49.46 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007776/1.473, allocations: 93.7 kB / 0.7579 GB, free: 49.37 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002632/1.476, allocations: 5.534 MB / 0.7633 GB, free: 44.29 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001643/1.477, allocations: 1.494 MB / 0.7647 GB, free: 42.81 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/1.479, allocations: 1.248 MB / 0.7659 GB, free: 41.55 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.442e-05/1.479, allocations: 301.1 kB / 0.7662 GB, free: 41.26 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003568/1.483, allocations: 2.847 MB / 0.769 GB, free: 38.41 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004438/1.487, allocations: 5.354 MB / 0.7742 GB, free: 31.89 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00898/1.496, allocations: 8.728 MB / 0.7828 GB, free: 21.98 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.661e-05/1.496, allocations: 24 kB / 0.7828 GB, free: 21.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01603/1.512, allocations: 9.679 MB / 0.7922 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.923e-05/1.512, allocations: 40 kB / 0.7923 GB, free: 12.17 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/1.513, allocations: 80 kB / 0.7924 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002689/1.515, allocations: 1.123 MB / 0.7935 GB, free: 10.95 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005097/1.52, allocations: 1.443 MB / 0.7949 GB, free: 9.508 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/1.535, allocations: 13.48 MB / 0.808 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005658/1.54, allocations: 359.7 kB / 0.8084 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/1.542, allocations: 320 kB / 0.8087 GB, free: 10.81 MB / 0.5294 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.01039/1.552, allocations: 4.229 MB / 0.8128 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002006/1.554, allocations: 0.5589 MB / 0.8134 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/1.568, allocations: 7.061 MB / 0.8202 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007816/1.576, allocations: 4.203 MB / 0.8244 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.684e-05/1.576, allocations: 12 kB / 0.8244 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.991e-05/1.576, allocations: 19.92 kB / 0.8244 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03661/1.613, allocations: 16.9 MB / 0.8409 GB, free: 9.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-05/1.613, allocations: 4 kB / 0.8409 GB, free: 9.516 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0032/1.616, allocations: 0.6831 MB / 0.8416 GB, free: 8.832 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00348/1.62, allocations: 1.179 MB / 0.8427 GB, free: 7.633 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007054/1.62, allocations: 99.97 kB / 0.8428 GB, free: 7.535 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2696/1.89, allocations: 17.4 MB / 0.8598 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.89, allocations: 7.281 kB / 0.8598 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0178/1.908, allocations: 10.25 MB / 0.8698 GB, free: 170.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003545/1.911, allocations: 1.138 MB / 0.8709 GB, free: 170.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001501/1.913, allocations: 86.5 kB / 0.871 GB, free: 170.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003235/1.916, allocations: 211.6 kB / 0.8712 GB, free: 170.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001007/1.917, allocations: 307.8 kB / 0.8715 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004738/1.918, allocations: 125.7 kB / 0.8716 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007759/1.925, allocations: 3.462 MB / 0.875 GB, free: 168.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.11e-07/1.925, allocations: 0 / 0.875 GB, free: 168.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009701/1.935, allocations: 1.962 MB / 0.8769 GB, free: 168.8 MB / 0.5607 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.01874/1.954, allocations: 11 MB / 0.8877 GB, free: 163.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01176/1.966, allocations: 7.409 MB / 0.8949 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.966, allocations: 3.375 kB / 0.8949 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006454/1.972, allocations: 3.855 MB / 0.8987 GB, free: 158.8 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00729/1.979, allocations: 1.436 MB / 0.9001 GB, free: 158.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1123/2.092, allocations: 66.77 MB / 0.9653 GB, free: 98.56 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01283/2.105, allocations: 7.373 MB / 0.9725 GB, free: 91.15 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005877/2.11, allocations: 1.997 MB / 0.9744 GB, free: 89.14 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006616/2.117, allocations: 4.385 MB / 0.9787 GB, free: 84.76 MB / 0.5607 GB Notification: Performance of SimCode: time 1.393e-06/2.117, allocations: 0 / 0.9787 GB, free: 84.76 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5302/2.647, allocations: 158.9 MB / 1.134 GB, free: 133.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.62/26.27, allocations: 2.812 kB / 1.134 GB, free: 133.8 MB / 0.5607 GB " [Timeout remaining time 634] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 36.796909662894905]