Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 124.4 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002109/0.002109, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_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_1_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.001754/0.001754, allocations: 51.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1093, allocations: 53.33 MB / 426.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2475/0.3568, allocations: 38.06 MB / 464.4 MB, free: 2.539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03065/0.3874, allocations: 10.32 MB / 474.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009673/0.3971, allocations: 330.1 kB / 475 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02368/0.4208, allocations: 9.25 MB / 484.3 MB, free: 4.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01698/0.4377, allocations: 4.016 MB / 488.3 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.4478, allocations: 2.439 MB / 490.8 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02314/0.4709, allocations: 14.22 MB / 0.4931 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0423/0.5132, allocations: 19.31 MB / 0.512 GB, free: 14.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01374/0.527, allocations: 7.344 MB / 0.5192 GB, free: 7.422 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01503/0.542, allocations: 8.136 MB / 0.5271 GB, free: 15.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006648/0.5486, allocations: 2.027 MB / 0.5291 GB, free: 13.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009342/0.558, allocations: 2.449 MB / 0.5315 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007301/0.5653, allocations: 4.044 MB / 0.5354 GB, free: 6.727 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01624/0.5815, allocations: 7.825 MB / 0.5431 GB, free: 14.87 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04114/0.6227, allocations: 27.05 MB / 0.5695 GB, free: 3.73 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.6227, allocations: 4 kB / 0.5695 GB, free: 3.727 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.6227, allocations: 0 / 0.5695 GB, free: 3.727 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0008499/0.6235, allocations: 0 / 0.5695 GB, free: 3.727 MB / 478.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.05333/0.6769, allocations: 16.18 MB / 0.5853 GB, free: 3.406 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.6769, allocations: 8.031 kB / 0.5853 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007884/0.6848, allocations: 1.934 MB / 0.5872 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03918/0.724, allocations: 6.421 MB / 0.5935 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02066/0.7446, allocations: 8.643 MB / 0.6019 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001105/0.7457, allocations: 0.9071 MB / 0.6028 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005054/0.7508, allocations: 1.195 MB / 0.604 GB, free: 196 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4951/1.246, allocations: 18.81 MB / 0.6223 GB, free: 139 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008209/1.247, allocations: 25.53 kB / 0.6224 GB, free: 139 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005891/1.253, allocations: 0.4888 MB / 0.6228 GB, free: 139 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001327/1.254, allocations: 0.6529 MB / 0.6235 GB, free: 139 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04709/1.301, allocations: 17.04 MB / 0.6401 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1153/1.416, allocations: 63.35 MB / 0.702 GB, free: 87.97 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02482/1.441, allocations: 29.57 MB / 0.7309 GB, free: 54.91 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006754/1.448, allocations: 3.68 MB / 0.7345 GB, free: 51.23 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.023/1.471, allocations: 10.42 MB / 0.7446 GB, free: 40.92 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.319e-05/1.471, allocations: 81.73 kB / 0.7447 GB, free: 40.83 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 1.177e-05/1.471, allocations: 3.938 kB / 0.7447 GB, free: 40.82 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.05069/1.522, allocations: 20.41 MB / 0.7647 GB, free: 20.59 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/1.522, allocations: 120.4 kB / 0.7648 GB, free: 20.45 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009764/1.531, allocations: 5.196 MB / 0.7698 GB, free: 15.32 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009645/1.532, allocations: 93.64 kB / 0.7699 GB, free: 15.22 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003105/1.536, allocations: 5.548 MB / 0.7753 GB, free: 9.789 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001893/1.537, allocations: 1.494 MB / 0.7768 GB, free: 8.312 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003925/1.541, allocations: 1.263 MB / 0.778 GB, free: 7.039 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.773e-05/1.541, allocations: 309.1 kB / 0.7783 GB, free: 6.734 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004845/1.546, allocations: 2.855 MB / 0.7811 GB, free: 3.875 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007475/1.554, allocations: 5.353 MB / 0.7864 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01605/1.57, allocations: 8.747 MB / 0.7949 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/1.57, allocations: 24 kB / 0.7949 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.0265/1.596, allocations: 9.706 MB / 0.8044 GB, free: 9.633 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/1.597, allocations: 40 kB / 0.8044 GB, free: 9.594 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002198/1.597, allocations: 84 kB / 0.8045 GB, free: 9.512 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003958/1.601, allocations: 1.126 MB / 0.8056 GB, free: 8.375 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006589/1.607, allocations: 1.455 MB / 0.807 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/1.629, allocations: 13.48 MB / 0.8202 GB, free: 8.891 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00678/1.636, allocations: 351.7 kB / 0.8205 GB, free: 8.547 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/1.638, allocations: 327.9 kB / 0.8208 GB, free: 8.227 MB / 0.5607 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.011/1.649, allocations: 4.236 MB / 0.825 GB, free: 3.977 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/1.651, allocations: 0.559 MB / 0.8255 GB, free: 3.414 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01871/1.67, allocations: 7.07 MB / 0.8324 GB, free: 12.24 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009664/1.68, allocations: 4.21 MB / 0.8365 GB, free: 7.977 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-05/1.68, allocations: 12 kB / 0.8366 GB, free: 7.965 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/1.68, allocations: 24.09 kB / 0.8366 GB, free: 7.941 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.299/1.979, allocations: 16.95 MB / 0.8531 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.979, allocations: 6.125 kB / 0.8531 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/1.982, allocations: 0.6911 MB / 0.8538 GB, free: 188.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00344/1.985, allocations: 1.185 MB / 0.855 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000383/1.986, allocations: 105.1 kB / 0.8551 GB, free: 188.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01788/2.004, allocations: 17.41 MB / 0.8721 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/2.004, allocations: 6.906 kB / 0.8721 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01658/2.02, allocations: 10.3 MB / 0.8821 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002979/2.023, allocations: 1.141 MB / 0.8832 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009579/2.024, allocations: 85.89 kB / 0.8833 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/2.027, allocations: 208.6 kB / 0.8835 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008404/2.028, allocations: 310.4 kB / 0.8838 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002944/2.028, allocations: 123.8 kB / 0.8839 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005177/2.033, allocations: 3.488 MB / 0.8874 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1e-07/2.033, allocations: 1.062 kB / 0.8874 GB, free: 169.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007928/2.041, allocations: 1.951 MB / 0.8893 GB, free: 169.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.01462/2.056, allocations: 11.04 MB / 0.9 GB, free: 164 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01204/2.068, allocations: 7.406 MB / 0.9073 GB, free: 160.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/2.068, allocations: 0 / 0.9073 GB, free: 160.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00667/2.074, allocations: 3.88 MB / 0.9111 GB, free: 157.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009058/2.083, allocations: 1.449 MB / 0.9125 GB, free: 156.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1118/2.195, allocations: 66.78 MB / 0.9777 GB, free: 89.94 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01223/2.207, allocations: 7.378 MB / 0.9849 GB, free: 82.52 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006481/2.214, allocations: 2.005 MB / 0.9869 GB, free: 80.51 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006797/2.221, allocations: 4.422 MB / 0.9912 GB, free: 76.09 MB / 0.5763 GB Notification: Performance of SimCode: time 1.714e-06/2.221, allocations: 0 / 0.9912 GB, free: 76.09 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.494/2.715, allocations: 159.4 MB / 1.147 GB, free: 130.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.05/25.76, allocations: 14.81 kB / 1.147 GB, free: 130.3 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/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_4.1.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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 35.76181512302719]