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.001522/0.001522, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001652/0.001652, allocations: 192 kB / 18 MB, free: 5.098 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 55.91 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 49.43 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03119/0.2987, allocations: 28.58 MB / 428.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01677/0.3155, allocations: 8.388 MB / 437.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005634/0.3212, allocations: 211.4 kB / 437.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0187/0.3399, allocations: 8.167 MB / 445.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01059/0.3505, allocations: 2.785 MB / 448.4 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006386/0.3569, allocations: 1.866 MB / 450.3 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01353/0.3705, allocations: 9.962 MB / 460.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03563/0.4062, allocations: 21.35 MB / 481.6 MB, free: 7.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008944/0.4152, allocations: 5.373 MB / 487 MB, free: 1.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.4257, allocations: 6.039 MB / 493 MB, free: 11.67 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004666/0.4305, allocations: 1.539 MB / 494.5 MB, free: 10.13 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006214/0.4367, allocations: 1.89 MB / 496.4 MB, free: 8.242 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00467/0.4414, allocations: 2.985 MB / 499.4 MB, free: 5.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01014/0.4516, allocations: 5.844 MB / 0.4934 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02606/0.4777, allocations: 20.62 MB / 0.5135 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.4778, allocations: 0 / 0.5135 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4778, allocations: 0 / 0.5135 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006841/0.4785, allocations: 4 kB / 0.5136 GB, free: 10.7 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0411/0.5196, allocations: 11.84 MB / 0.5251 GB, free: 14.76 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.5197, allocations: 15.89 kB / 0.5251 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006436/0.5261, allocations: 1.536 MB / 0.5266 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03257/0.5587, allocations: 5.631 MB / 0.5321 GB, free: 7.547 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01719/0.576, allocations: 6.308 MB / 0.5383 GB, free: 1.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008777/0.5769, allocations: 0.6986 MB / 0.539 GB, free: 492 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.4705/1.047, allocations: 0.9267 MB / 0.5399 GB, free: 117.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04021/1.088, allocations: 15.08 MB / 0.5546 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006447/1.088, allocations: 11.12 kB / 0.5546 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003468/1.092, allocations: 397.1 kB / 0.555 GB, free: 111.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006449/1.093, allocations: 0.5168 MB / 0.5555 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02875/1.121, allocations: 13.75 MB / 0.5689 GB, free: 100.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06874/1.19, allocations: 47.15 MB / 0.615 GB, free: 52.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0149/1.205, allocations: 28.6 MB / 0.6429 GB, free: 20.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004122/1.209, allocations: 3.085 MB / 0.6459 GB, free: 17.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003667/1.21, allocations: 240.7 kB / 0.6461 GB, free: 17.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/1.21, allocations: 77.52 kB / 0.6462 GB, free: 17.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.07e-06/1.21, allocations: 0 / 0.6462 GB, free: 17.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.0277/1.237, allocations: 14.77 MB / 0.6606 GB, free: 2.262 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/1.238, allocations: 98.48 kB / 0.6607 GB, free: 2.152 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005847/1.243, allocations: 3.599 MB / 0.6642 GB, free: 14.56 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006294/1.244, allocations: 85.7 kB / 0.6643 GB, free: 14.47 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003098/1.247, allocations: 4.045 MB / 0.6683 GB, free: 10.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00184/1.249, allocations: 1.346 MB / 0.6696 GB, free: 9.062 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002609/1.252, allocations: 1.164 MB / 0.6707 GB, free: 7.887 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/1.252, allocations: 301.1 kB / 0.671 GB, free: 7.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004883/1.257, allocations: 2.592 MB / 0.6735 GB, free: 4.992 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007712/1.264, allocations: 5.086 MB / 0.6785 GB, free: 14.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/1.277, allocations: 8.34 MB / 0.6867 GB, free: 5.207 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.046e-05/1.278, allocations: 24 kB / 0.6867 GB, free: 5.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01736/1.295, allocations: 8.635 MB / 0.6951 GB, free: 12.52 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.9e-05/1.295, allocations: 40 kB / 0.6952 GB, free: 12.48 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/1.295, allocations: 83.98 kB / 0.6952 GB, free: 12.39 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002503/1.298, allocations: 0.8466 MB / 0.6961 GB, free: 11.55 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004965/1.303, allocations: 1.369 MB / 0.6974 GB, free: 10.18 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/1.315, allocations: 7.693 MB / 0.7049 GB, free: 2.344 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005017/1.32, allocations: 323.3 kB / 0.7052 GB, free: 2.027 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.321, allocations: 308 kB / 0.7055 GB, free: 1.727 MB / 0.4982 GB 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.006155/1.327, allocations: 3.509 MB / 0.7089 GB, free: 14.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/1.328, allocations: 411 kB / 0.7093 GB, free: 13.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.339, allocations: 5.988 MB / 0.7152 GB, free: 7.77 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.625e-05/1.339, allocations: 40 kB / 0.7152 GB, free: 7.73 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/1.339, allocations: 4 kB / 0.7152 GB, free: 7.727 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.889e-05/1.339, allocations: 23.92 kB / 0.7152 GB, free: 7.703 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02921/1.368, allocations: 14.95 MB / 0.7298 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/1.368, allocations: 4 kB / 0.7298 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/1.371, allocations: 0.6865 MB / 0.7305 GB, free: 8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002179/1.374, allocations: 0.7176 MB / 0.7312 GB, free: 7.281 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000505/1.374, allocations: 79.98 kB / 0.7313 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009746/1.384, allocations: 6.709 MB / 0.7378 GB, free: 368 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/1.384, allocations: 7.938 kB / 0.7379 GB, free: 360 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2315/1.615, allocations: 8.75 MB / 0.7464 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/1.618, allocations: 0.8825 MB / 0.7473 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008654/1.619, allocations: 73 kB / 0.7473 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.621, allocations: 186.6 kB / 0.7475 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006875/1.622, allocations: 275.3 kB / 0.7478 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/1.622, allocations: 110.7 kB / 0.7479 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003752/1.626, allocations: 2.417 MB / 0.7502 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.4e-07/1.626, allocations: 0 / 0.7502 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006033/1.632, allocations: 1.542 MB / 0.7517 GB, free: 172.6 MB / 0.5294 GB 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.01279/1.645, allocations: 9.479 MB / 0.761 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009435/1.654, allocations: 6.528 MB / 0.7674 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/1.654, allocations: 3.406 kB / 0.7674 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004526/1.659, allocations: 2.95 MB / 0.7703 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005371/1.664, allocations: 0.9558 MB / 0.7712 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07569/1.74, allocations: 52.41 MB / 0.8224 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007493/1.748, allocations: 5.975 MB / 0.8282 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004525/1.752, allocations: 1.877 MB / 0.83 GB, free: 106 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004225/1.756, allocations: 3.213 MB / 0.8332 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/1.756, allocations: 0 / 0.8332 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.275/4.031, allocations: 120.1 MB / 0.9504 GB, free: 169.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.65/26.68, allocations: 5.062 kB / 0.9504 GB, free: 169.8 MB / 0.545 GB (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