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_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 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_MTPA,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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.00125/0.00125, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001321/0.001322, allocations: 192 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001361/0.001361, allocations: 51.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 46.63 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2165/0.3185, allocations: 29.21 MB / 403.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02011/0.3387, allocations: 8.531 MB / 412.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007688/0.3464, allocations: 182.6 kB / 412.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01973/0.3662, allocations: 8.204 MB / 420.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.3785, allocations: 3.018 MB / 423.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006535/0.3851, allocations: 1.9 MB / 425.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01523/0.4003, allocations: 10.49 MB / 436.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03538/0.4358, allocations: 21.47 MB / 457.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009821/0.4456, allocations: 5.614 MB / 463.3 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0109/0.4566, allocations: 6.373 MB / 469.7 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004637/0.4612, allocations: 1.578 MB / 471.3 MB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007042/0.4683, allocations: 1.937 MB / 473.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005311/0.4737, allocations: 3.191 MB / 476.4 MB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.013/0.4867, allocations: 6.12 MB / 482.5 MB, free: 3.898 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02672/0.5134, allocations: 21.19 MB / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.5135, allocations: 3.938 kB / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5135, allocations: 0 / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006096/0.5141, allocations: 0 / 0.4919 GB, free: 14.64 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03838/0.5525, allocations: 12.44 MB / 0.504 GB, free: 2.105 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.5526, allocations: 11.89 kB / 0.5041 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005557/0.5582, allocations: 1.639 MB / 0.5057 GB, free: 452 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04639/0.6046, allocations: 8.598 MB / 0.5141 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.6188, allocations: 5.907 MB / 0.5198 GB, free: 1.852 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006666/0.6195, allocations: 0.7426 MB / 0.5205 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/0.6234, allocations: 0.9763 MB / 0.5215 GB, free: 132 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03811/0.6615, allocations: 16.59 MB / 0.5377 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003638/0.6619, allocations: 15.91 kB / 0.5377 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002751/0.6647, allocations: 415.9 kB / 0.5381 GB, free: 15.03 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006013/0.6653, allocations: 0.6028 MB / 0.5387 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.364/1.029, allocations: 15.98 MB / 0.5543 GB, free: 134.3 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08522/1.115, allocations: 51.61 MB / 0.6047 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02569/1.14, allocations: 52.26 MB / 0.6557 GB, free: 48.39 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004911/1.145, allocations: 3.469 MB / 0.6591 GB, free: 46.62 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.159, allocations: 9.393 MB / 0.6683 GB, free: 37.61 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/1.159, allocations: 64.67 kB / 0.6684 GB, free: 37.54 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.779e-06/1.159, allocations: 0 / 0.6684 GB, free: 37.54 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02281/1.182, allocations: 12.93 MB / 0.681 GB, free: 24.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/1.182, allocations: 81.58 kB / 0.6811 GB, free: 24.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/1.187, allocations: 4.072 MB / 0.685 GB, free: 20.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/1.187, allocations: 69.7 kB / 0.6851 GB, free: 20.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/1.189, allocations: 4.63 MB / 0.6896 GB, free: 15.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005994/1.19, allocations: 0.9978 MB / 0.6906 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/1.191, allocations: 1.226 MB / 0.6918 GB, free: 13.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/1.191, allocations: 305.1 kB / 0.6921 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/1.194, allocations: 2.444 MB / 0.6945 GB, free: 10.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/1.197, allocations: 5.61 MB / 0.7 GB, free: 3.449 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009396/1.207, allocations: 8.69 MB / 0.7084 GB, free: 9.188 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.041e-05/1.207, allocations: 32 kB / 0.7085 GB, free: 9.156 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.0164/1.223, allocations: 8.756 MB / 0.717 GB, free: 352 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/1.223, allocations: 56.94 kB / 0.7171 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/1.224, allocations: 108 kB / 0.7172 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/1.226, allocations: 0.8718 MB / 0.718 GB, free: 15.31 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004693/1.231, allocations: 1.411 MB / 0.7194 GB, free: 13.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.241, allocations: 7.553 MB / 0.7268 GB, free: 6.195 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004613/1.246, allocations: 351.3 kB / 0.7271 GB, free: 5.852 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009102/1.247, allocations: 348 kB / 0.7275 GB, free: 5.512 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006157/1.253, allocations: 3.692 MB / 0.7311 GB, free: 1.805 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/1.254, allocations: 403 kB / 0.7314 GB, free: 1.406 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008475/1.263, allocations: 5.059 MB / 0.7364 GB, free: 12.29 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.854e-05/1.263, allocations: 39.98 kB / 0.7364 GB, free: 12.25 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.263, allocations: 8 kB / 0.7364 GB, free: 12.24 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.647e-05/1.263, allocations: 15.94 kB / 0.7364 GB, free: 12.23 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2261/1.489, allocations: 12.22 MB / 0.7484 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/1.489, allocations: 4.281 kB / 0.7484 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00269/1.492, allocations: 0.5189 MB / 0.7489 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/1.494, allocations: 0.7071 MB / 0.7496 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003855/1.494, allocations: 70.34 kB / 0.7496 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008855/1.503, allocations: 6.698 MB / 0.7562 GB, free: 169.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.503, allocations: 7.656 kB / 0.7562 GB, free: 169.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.514, allocations: 7.343 MB / 0.7634 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/1.516, allocations: 0.799 MB / 0.7641 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005491/1.517, allocations: 59.2 kB / 0.7642 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.518, allocations: 172.2 kB / 0.7644 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005078/1.519, allocations: 201.4 kB / 0.7646 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/1.519, allocations: 87.11 kB / 0.7646 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0046/1.524, allocations: 2.675 MB / 0.7673 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.5e-07/1.524, allocations: 3.031 kB / 0.7673 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006998/1.531, allocations: 1.554 MB / 0.7688 GB, free: 165 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01052/1.541, allocations: 8.01 MB / 0.7766 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009334/1.551, allocations: 6.138 MB / 0.7826 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/1.551, allocations: 0.5625 kB / 0.7826 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003625/1.554, allocations: 2.483 MB / 0.785 GB, free: 158 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004485/1.559, allocations: 0.9581 MB / 0.786 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0685/1.627, allocations: 54.62 MB / 0.8393 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005215/1.633, allocations: 6.204 MB / 0.8454 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004186/1.637, allocations: 1.947 MB / 0.8473 GB, free: 98.46 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003351/1.64, allocations: 3.385 MB / 0.8506 GB, free: 95.07 MB / 0.5138 GB Notification: Performance of SimCode: time 9.02e-07/1.64, allocations: 0 / 0.8506 GB, free: 95.07 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3716/2.012, allocations: 117.5 MB / 0.9653 GB, free: 154.9 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.79/19.8, allocations: 7.266 kB / 0.9653 GB, free: 154.9 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/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_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches