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.001633/0.001633, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001856/0.001856, allocations: 188.2 kB / 23.72 MB, free: 4.684 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.387/1.387, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.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.001595/0.001595, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2577, allocations: 52.18 MB / 422.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.0437/0.3014, allocations: 37.5 MB / 460.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02293/0.3244, allocations: 10.05 MB / 470.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00687/0.3312, allocations: 326.3 kB / 470.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0224/0.3536, allocations: 9.266 MB / 479.8 MB, free: 5.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01397/0.3676, allocations: 4.094 MB / 483.9 MB, free: 1.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007924/0.3755, allocations: 2.438 MB / 486.3 MB, free: 14.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02157/0.3971, allocations: 14.21 MB / 0.4888 GB, free: 452 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03506/0.4322, allocations: 17.12 MB / 0.5055 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01352/0.4457, allocations: 7.379 MB / 0.5127 GB, free: 7.766 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01473/0.4604, allocations: 8 MB / 0.5206 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006266/0.4667, allocations: 2.027 MB / 0.5225 GB, free: 13.71 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008529/0.4752, allocations: 2.433 MB / 0.5249 GB, free: 11.28 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007471/0.4827, allocations: 4.044 MB / 0.5289 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2886/0.7713, allocations: 7.809 MB / 0.5365 GB, free: 47.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03256/0.8038, allocations: 27 MB / 0.5629 GB, free: 42.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.8038, allocations: 2.156 kB / 0.5629 GB, free: 42.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.8038, allocations: 0 / 0.5629 GB, free: 42.11 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008534/0.8047, allocations: 0 / 0.5629 GB, free: 42.11 MB / 446.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.04968/0.8544, allocations: 16.07 MB / 0.5786 GB, free: 33.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.8544, allocations: 11.5 kB / 0.5786 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007752/0.8622, allocations: 1.928 MB / 0.5804 GB, free: 32.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/0.8966, allocations: 6.47 MB / 0.5868 GB, free: 29.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01989/0.9164, allocations: 8.615 MB / 0.5952 GB, free: 22.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007569/0.9172, allocations: 0.9079 MB / 0.5961 GB, free: 21.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004893/0.9221, allocations: 1.192 MB / 0.5972 GB, free: 20.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04482/0.9669, allocations: 18.77 MB / 0.6156 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005557/0.9675, allocations: 19.41 kB / 0.6156 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004135/0.9716, allocations: 0.4935 MB / 0.6161 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005643/0.9722, allocations: 0.6576 MB / 0.6167 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0423/1.014, allocations: 17 MB / 0.6333 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1323/1.147, allocations: 60.29 MB / 0.6922 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02363/1.17, allocations: 10.84 MB / 0.7028 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007774/1.178, allocations: 3.654 MB / 0.7063 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02576/1.204, allocations: 9.906 MB / 0.716 GB, free: 11.56 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.622e-05/1.204, allocations: 81.8 kB / 0.7161 GB, free: 11.47 MB / 0.545 GB Notification: Performance of pre-optimization done (n=402): time 9.217e-06/1.204, allocations: 0 / 0.7161 GB, free: 11.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=412): time 0.05189/1.256, allocations: 19.65 MB / 0.7353 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.079e-05/1.256, allocations: 124.4 kB / 0.7354 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01156/1.268, allocations: 5.162 MB / 0.7404 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007982/1.268, allocations: 93.7 kB / 0.7405 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.2313/1.5, allocations: 5.528 MB / 0.7459 GB, free: 196.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001754/1.501, allocations: 1.489 MB / 0.7474 GB, free: 195.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002245/1.504, allocations: 1.254 MB / 0.7486 GB, free: 195.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.237e-05/1.504, allocations: 301.1 kB / 0.7489 GB, free: 195.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004554/1.508, allocations: 2.852 MB / 0.7517 GB, free: 195.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005306/1.514, allocations: 5.346 MB / 0.7569 GB, free: 192.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00919/1.523, allocations: 8.731 MB / 0.7654 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.483e-05/1.523, allocations: 22.44 kB / 0.7654 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01603/1.539, allocations: 9.588 MB / 0.7748 GB, free: 182 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/1.539, allocations: 41.97 kB / 0.7749 GB, free: 182 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/1.539, allocations: 82.06 kB / 0.7749 GB, free: 182 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002776/1.542, allocations: 1.12 MB / 0.776 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/1.547, allocations: 1.452 MB / 0.7774 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/1.562, allocations: 13.08 MB / 0.7902 GB, free: 171.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005898/1.568, allocations: 356.8 kB / 0.7906 GB, free: 171.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/1.569, allocations: 323.3 kB / 0.7909 GB, free: 171.1 MB / 0.5606 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.008303/1.577, allocations: 4.224 MB / 0.795 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/1.579, allocations: 0.554 MB / 0.7955 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/1.593, allocations: 6.908 MB / 0.8023 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00684/1.6, allocations: 4.197 MB / 0.8064 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.627e-05/1.6, allocations: 19.98 kB / 0.8064 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.63e-05/1.6, allocations: 21.8 kB / 0.8064 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03711/1.637, allocations: 16.78 MB / 0.8228 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/1.637, allocations: 4 kB / 0.8228 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/1.64, allocations: 0.6865 MB / 0.8235 GB, free: 141 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003447/1.644, allocations: 1.184 MB / 0.8246 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008719/1.645, allocations: 99.95 kB / 0.8247 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/1.661, allocations: 16.77 MB / 0.8411 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.661, allocations: 7.938 kB / 0.8411 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01852/1.68, allocations: 10.1 MB / 0.851 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003975/1.684, allocations: 1.086 MB / 0.852 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002221/1.686, allocations: 83.94 kB / 0.8521 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004331/1.69, allocations: 216.5 kB / 0.8523 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/1.692, allocations: 319.1 kB / 0.8526 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007743/1.693, allocations: 120 kB / 0.8527 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006937/1.7, allocations: 3.465 MB / 0.8561 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.7, allocations: 0 / 0.8561 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009259/1.709, allocations: 1.953 MB / 0.858 GB, free: 104.8 MB / 0.5606 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.01834/1.727, allocations: 10.87 MB / 0.8686 GB, free: 93.81 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01316/1.74, allocations: 7.32 MB / 0.8758 GB, free: 86.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/1.74, allocations: 8.062 kB / 0.8758 GB, free: 86.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007107/1.747, allocations: 3.873 MB / 0.8796 GB, free: 82.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01015/1.758, allocations: 1.431 MB / 0.881 GB, free: 81.07 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1368/1.894, allocations: 66.77 MB / 0.9462 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01503/1.909, allocations: 7.373 MB / 0.9534 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007604/1.917, allocations: 2.001 MB / 0.9553 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2461/2.163, allocations: 4.392 MB / 0.9596 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.453e-06/2.163, allocations: 0.5 kB / 0.9596 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2652/2.428, allocations: 164.4 MB / 1.12 GB, free: 57.54 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.33/27.76, allocations: 3.938 kB / 1.12 GB, free: 57.54 MB / 0.5606 GB " [Timeout remaining time 632] (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/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_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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 36.641836483962834]