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_MTPA.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 4.0.0+maint.om/package.mo", uses=false) 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_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.00117/0.001171, allocations: 113 kB / 16.62 MB, free: 6.332 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.001456/0.001456, allocations: 189.8 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 49.23 kB / 300.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.09002, allocations: 49.44 MB / 349.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1988/0.2889, allocations: 28.05 MB / 377.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.3054, allocations: 8.28 MB / 386 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006042/0.3115, allocations: 211 kB / 386.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01679/0.3283, allocations: 7.73 MB / 394 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00925/0.3376, allocations: 2.517 MB / 396.5 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004662/0.3422, allocations: 1.729 MB / 398.2 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01463/0.3569, allocations: 9.911 MB / 408.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03366/0.3906, allocations: 24.67 MB / 432.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007986/0.3986, allocations: 5.4 MB / 438.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0104/0.409, allocations: 6.101 MB / 444.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003737/0.4128, allocations: 1.543 MB / 445.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005243/0.4181, allocations: 1.906 MB / 447.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002486/0.4206, allocations: 2.993 MB / 450.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007275/0.4279, allocations: 5.845 MB / 456.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.4461, allocations: 20.5 MB / 477.1 MB, free: 6.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4462, allocations: 4 kB / 477.1 MB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4462, allocations: 0 / 477.1 MB, free: 6.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004323/0.4466, allocations: 3.938 kB / 477.1 MB, free: 6.605 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03116/0.4778, allocations: 11.87 MB / 489 MB, free: 10.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.4779, allocations: 11.89 kB / 489 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003236/0.4811, allocations: 1.543 MB / 490.5 MB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02965/0.5108, allocations: 5.616 MB / 496.2 MB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.5224, allocations: 6.121 MB / 0.4905 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004919/0.523, allocations: 0.7065 MB / 0.4912 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002017/0.525, allocations: 0.9295 MB / 0.4921 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02767/0.5527, allocations: 15.09 MB / 0.5068 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000332/0.553, allocations: 15.84 kB / 0.5068 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/0.555, allocations: 395.9 kB / 0.5072 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005036/0.5555, allocations: 0.5156 MB / 0.5077 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4592/1.015, allocations: 13.73 MB / 0.5211 GB, free: 118.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/1.124, allocations: 47.69 MB / 0.5677 GB, free: 88.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02088/1.144, allocations: 28.59 MB / 0.5956 GB, free: 59.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004959/1.15, allocations: 3.071 MB / 0.5986 GB, free: 57.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/1.15, allocations: 246.6 kB / 0.5989 GB, free: 57.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/1.15, allocations: 75.89 kB / 0.5989 GB, free: 57.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 8.816e-06/1.15, allocations: 0 / 0.5989 GB, free: 57.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.03418/1.185, allocations: 14.72 MB / 0.6133 GB, free: 43.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/1.185, allocations: 94.48 kB / 0.6134 GB, free: 42.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007322/1.192, allocations: 3.598 MB / 0.6169 GB, free: 39.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000371/1.192, allocations: 89.7 kB / 0.617 GB, free: 39.26 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002414/1.195, allocations: 4.05 MB / 0.6209 GB, free: 35.19 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/1.196, allocations: 1.339 MB / 0.6223 GB, free: 33.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002347/1.198, allocations: 1.171 MB / 0.6234 GB, free: 32.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.841e-05/1.199, allocations: 301.1 kB / 0.6237 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00382/1.202, allocations: 2.588 MB / 0.6262 GB, free: 29.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005018/1.207, allocations: 5.083 MB / 0.6312 GB, free: 23.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009237/1.217, allocations: 8.337 MB / 0.6393 GB, free: 14.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/1.217, allocations: 20 kB / 0.6393 GB, free: 13.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01424/1.231, allocations: 8.624 MB / 0.6478 GB, free: 5.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.6e-05/1.231, allocations: 40 kB / 0.6478 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001719/1.231, allocations: 84 kB / 0.6479 GB, free: 5.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/1.234, allocations: 0.8383 MB / 0.6487 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.238, allocations: 1.377 MB / 0.65 GB, free: 3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.251, allocations: 7.618 MB / 0.6575 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006897/1.258, allocations: 331.3 kB / 0.6578 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/1.26, allocations: 304 kB / 0.6581 GB, free: 10.62 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01234/1.272, allocations: 3.509 MB / 0.6615 GB, free: 7.098 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002141/1.274, allocations: 415 kB / 0.6619 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01499/1.289, allocations: 5.965 MB / 0.6677 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.655e-05/1.289, allocations: 44 kB / 0.6678 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4e-05/1.289, allocations: 15.94 kB / 0.6678 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-05/1.289, allocations: 19.92 kB / 0.6678 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04358/1.333, allocations: 15.24 MB / 0.6827 GB, free: 1.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.267e-05/1.333, allocations: 8.625 kB / 0.6827 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.336, allocations: 0.6981 MB / 0.6834 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002258/1.338, allocations: 0.7014 MB / 0.6841 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004309/1.339, allocations: 87.98 kB / 0.6841 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/1.349, allocations: 6.647 MB / 0.6906 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/1.349, allocations: 4 kB / 0.6906 GB, free: 8.895 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/1.366, allocations: 8.743 MB / 0.6992 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2604/1.626, allocations: 0.8754 MB / 0.7 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009906/1.627, allocations: 77.2 kB / 0.7001 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002327/1.629, allocations: 183.4 kB / 0.7003 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007658/1.63, allocations: 271.1 kB / 0.7005 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000288/1.63, allocations: 112.8 kB / 0.7006 GB, free: 155.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005395/1.636, allocations: 2.415 MB / 0.703 GB, free: 155.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.636, allocations: 0 / 0.703 GB, free: 155.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008054/1.644, allocations: 1.544 MB / 0.7045 GB, free: 155.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01384/1.658, allocations: 9.452 MB / 0.7137 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02595/1.684, allocations: 12.85 MB / 0.7263 GB, free: 149.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/1.684, allocations: 0 / 0.7263 GB, free: 149.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003904/1.688, allocations: 2.944 MB / 0.7292 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004521/1.692, allocations: 0.9572 MB / 0.7301 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08959/1.782, allocations: 64.82 MB / 0.7934 GB, free: 83.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00707/1.789, allocations: 5.972 MB / 0.7992 GB, free: 77.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004328/1.793, allocations: 1.885 MB / 0.8011 GB, free: 75.59 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003457/1.797, allocations: 3.217 MB / 0.8042 GB, free: 72.38 MB / 478.1 MB Notification: Performance of SimCode: time 1.353e-06/1.797, allocations: 0 / 0.8042 GB, free: 72.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3396/2.136, allocations: 121 MB / 0.9224 GB, free: 124.9 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/2.137, allocations: 287.2 kB / 0.9227 GB, free: 124.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.025/7.162, allocations: 5.5 kB / 0.9227 GB, free: 124.5 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_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_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches