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.001705/0.001705, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.001881/0.001881, allocations: 200 kB / 18.01 MB, free: 4.941 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.559/1.559, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 51.91 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3248, 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.03451/0.3593, allocations: 28.59 MB / 428.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01897/0.3784, allocations: 8.384 MB / 437.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0065/0.3849, allocations: 219.3 kB / 437.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02008/0.405, allocations: 8.153 MB / 445.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4159, allocations: 2.789 MB / 448.4 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006498/0.4224, allocations: 1.858 MB / 450.3 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01496/0.4374, allocations: 9.966 MB / 460.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03803/0.4754, allocations: 21.35 MB / 481.6 MB, free: 7.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0111/0.4866, allocations: 5.349 MB / 486.9 MB, free: 1.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.4979, allocations: 6.035 MB / 493 MB, free: 11.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005357/0.5033, allocations: 1.543 MB / 494.5 MB, free: 10.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006947/0.5103, allocations: 1.898 MB / 496.4 MB, free: 8.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005245/0.5155, allocations: 2.985 MB / 499.4 MB, free: 5.277 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01381/0.5294, allocations: 5.848 MB / 0.4934 GB, free: 15.4 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03318/0.5626, allocations: 20.67 MB / 0.5136 GB, free: 10.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.5626, allocations: 0 / 0.5136 GB, free: 10.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5626, allocations: 0 / 0.5136 GB, free: 10.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006461/0.5633, allocations: 0 / 0.5136 GB, free: 10.67 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.04354/0.6068, allocations: 12.05 MB / 0.5254 GB, free: 14.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.6069, allocations: 11.89 kB / 0.5254 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006564/0.6135, allocations: 1.54 MB / 0.5269 GB, free: 12.94 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03349/0.647, allocations: 5.675 MB / 0.5324 GB, free: 7.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01476/0.6618, allocations: 6.322 MB / 0.5386 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008801/0.6627, allocations: 0.7025 MB / 0.5393 GB, free: 172 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.4095/1.072, allocations: 0.9317 MB / 0.5402 GB, free: 117.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02984/1.102, allocations: 15.08 MB / 0.5549 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002562/1.102, allocations: 19.67 kB / 0.5549 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001248/1.104, allocations: 395.4 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003503/1.104, allocations: 0.5131 MB / 0.5558 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02251/1.127, allocations: 13.75 MB / 0.5692 GB, free: 100.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07822/1.205, allocations: 47.28 MB / 0.6154 GB, free: 52.56 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.222, allocations: 28.59 MB / 0.6433 GB, free: 20.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004488/1.227, allocations: 3.085 MB / 0.6463 GB, free: 17.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004679/1.228, allocations: 244.4 kB / 0.6466 GB, free: 16.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.713e-05/1.228, allocations: 72.92 kB / 0.6466 GB, free: 16.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 9.799e-06/1.228, allocations: 0 / 0.6466 GB, free: 16.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02805/1.256, allocations: 14.89 MB / 0.6612 GB, free: 2.262 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/1.256, allocations: 90.48 kB / 0.6613 GB, free: 2.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00603/1.262, allocations: 3.606 MB / 0.6648 GB, free: 14.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003044/1.262, allocations: 85.7 kB / 0.6649 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003371/1.266, allocations: 4.198 MB / 0.669 GB, free: 10.46 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001433/1.267, allocations: 1.405 MB / 0.6703 GB, free: 9.078 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00231/1.269, allocations: 1.168 MB / 0.6715 GB, free: 7.898 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/1.269, allocations: 305.1 kB / 0.6718 GB, free: 7.598 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004394/1.274, allocations: 2.588 MB / 0.6743 GB, free: 5.004 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00661/1.28, allocations: 5.09 MB / 0.6793 GB, free: 14.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/1.293, allocations: 8.337 MB / 0.6874 GB, free: 5.219 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.364e-05/1.293, allocations: 24 kB / 0.6874 GB, free: 5.195 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01698/1.31, allocations: 8.658 MB / 0.6959 GB, free: 12.51 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.825e-05/1.31, allocations: 43.98 kB / 0.6959 GB, free: 12.46 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/1.31, allocations: 84 kB / 0.696 GB, free: 12.38 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.313, allocations: 0.85 MB / 0.6968 GB, free: 11.54 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004959/1.318, allocations: 1.361 MB / 0.6982 GB, free: 10.17 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.33, allocations: 7.698 MB / 0.7057 GB, free: 2.332 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004226/1.334, allocations: 331.5 kB / 0.706 GB, free: 2.008 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/1.335, allocations: 308 kB / 0.7063 GB, free: 1.707 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.006887/1.342, allocations: 3.507 MB / 0.7097 GB, free: 14.19 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/1.343, allocations: 433.3 kB / 0.7101 GB, free: 13.76 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/1.355, allocations: 5.988 MB / 0.716 GB, free: 7.734 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-05/1.356, allocations: 40 kB / 0.716 GB, free: 7.695 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.628e-05/1.356, allocations: 8 kB / 0.716 GB, free: 7.688 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.953e-05/1.356, allocations: 19.92 kB / 0.7161 GB, free: 7.668 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03062/1.386, allocations: 14.97 MB / 0.7307 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.207e-05/1.386, allocations: 4 kB / 0.7307 GB, free: 8.641 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/1.389, allocations: 0.6865 MB / 0.7313 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/1.391, allocations: 0.7135 MB / 0.732 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000411/1.392, allocations: 87.98 kB / 0.7321 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/1.402, allocations: 6.709 MB / 0.7387 GB, free: 320 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/1.403, allocations: 11.88 kB / 0.7387 GB, free: 308 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2263/1.629, allocations: 8.774 MB / 0.7473 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/1.631, allocations: 0.9013 MB / 0.7481 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/1.631, allocations: 74.97 kB / 0.7482 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/1.633, allocations: 186.5 kB / 0.7484 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/1.633, allocations: 267.1 kB / 0.7486 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/1.634, allocations: 110.5 kB / 0.7487 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003072/1.637, allocations: 2.418 MB / 0.7511 GB, free: 173 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.637, allocations: 0 / 0.7511 GB, free: 173 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004492/1.641, allocations: 1.549 MB / 0.7526 GB, free: 172.8 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.01047/1.652, allocations: 9.495 MB / 0.7619 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008574/1.66, allocations: 6.537 MB / 0.7683 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.66, allocations: 3.938 kB / 0.7683 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003621/1.664, allocations: 2.951 MB / 0.7712 GB, free: 165 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004213/1.668, allocations: 0.9568 MB / 0.7721 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06456/1.733, allocations: 52.67 MB / 0.8235 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00509/1.738, allocations: 5.971 MB / 0.8294 GB, free: 107.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004098/1.742, allocations: 1.881 MB / 0.8312 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003213/1.745, allocations: 3.222 MB / 0.8343 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/1.745, allocations: 0 / 0.8343 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3825/2.128, allocations: 119.7 MB / 0.9513 GB, free: 168.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/21.58, allocations: 7.484 kB / 0.9513 GB, free: 168.3 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