Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001504/0.001504, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001873/0.001874, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.83 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3118, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03232/0.3442, allocations: 28.62 MB / 437.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02178/0.366, allocations: 8.481 MB / 445.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007106/0.3732, allocations: 215.3 kB / 446.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01899/0.3922, allocations: 8.163 MB / 454.3 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.4024, allocations: 2.785 MB / 457 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006293/0.4087, allocations: 1.887 MB / 458.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.014/0.4228, allocations: 10.02 MB / 469 MB, free: 5.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03662/0.4594, allocations: 21.35 MB / 490.3 MB, free: 15.64 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01056/0.4701, allocations: 5.373 MB / 495.7 MB, free: 10.26 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01097/0.4811, allocations: 6.074 MB / 0.49 GB, free: 4.164 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004901/0.486, allocations: 1.543 MB / 0.4915 GB, free: 2.621 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006986/0.4931, allocations: 1.929 MB / 0.4934 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005514/0.4986, allocations: 2.977 MB / 0.4963 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01258/0.5112, allocations: 5.852 MB / 0.502 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02662/0.5379, allocations: 20.64 MB / 0.5222 GB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.538, allocations: 0 / 0.5222 GB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.538, allocations: 0 / 0.5222 GB, free: 3.133 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006582/0.5387, allocations: 0 / 0.5222 GB, free: 3.133 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.03936/0.578, allocations: 11.88 MB / 0.5338 GB, free: 7.148 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.5781, allocations: 8.031 kB / 0.5338 GB, free: 7.141 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006265/0.5844, allocations: 1.547 MB / 0.5353 GB, free: 5.582 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5188/1.103, allocations: 5.624 MB / 0.5408 GB, free: 111.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02003/1.123, allocations: 6.308 MB / 0.5469 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001456/1.125, allocations: 0.7017 MB / 0.5476 GB, free: 108.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007616/1.133, allocations: 0.933 MB / 0.5485 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05842/1.191, allocations: 15.07 MB / 0.5632 GB, free: 101.4 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006983/1.192, allocations: 23.55 kB / 0.5633 GB, free: 101.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005459/1.197, allocations: 387.5 kB / 0.5636 GB, free: 101.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007961/1.198, allocations: 0.5154 MB / 0.5641 GB, free: 100.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03126/1.229, allocations: 13.76 MB / 0.5776 GB, free: 86.88 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08493/1.314, allocations: 47.55 MB / 0.624 GB, free: 38.42 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01695/1.331, allocations: 28.6 MB / 0.6519 GB, free: 6.117 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004818/1.336, allocations: 3.077 MB / 0.6549 GB, free: 3.035 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/1.337, allocations: 329.7 kB / 0.6553 GB, free: 2.668 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.99e-05/1.337, allocations: 77.52 kB / 0.6553 GB, free: 2.582 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.905e-06/1.337, allocations: 0 / 0.6553 GB, free: 2.582 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03671/1.374, allocations: 14.78 MB / 0.6698 GB, free: 3.727 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/1.374, allocations: 98.41 kB / 0.6699 GB, free: 3.617 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007878/1.382, allocations: 3.604 MB / 0.6734 GB, free: 20 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007707/1.382, allocations: 93.7 kB / 0.6735 GB, free: 15.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003273/1.386, allocations: 4.043 MB / 0.6774 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001898/1.388, allocations: 1.338 MB / 0.6787 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003733/1.391, allocations: 1.164 MB / 0.6799 GB, free: 9.348 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/1.392, allocations: 301.1 kB / 0.6801 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004981/1.397, allocations: 2.588 MB / 0.6827 GB, free: 6.457 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/1.404, allocations: 5.084 MB / 0.6876 GB, free: 204 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/1.416, allocations: 8.34 MB / 0.6958 GB, free: 6.672 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/1.416, allocations: 28 kB / 0.6958 GB, free: 6.645 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01896/1.435, allocations: 8.637 MB / 0.7042 GB, free: 13.98 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/1.436, allocations: 42.97 kB / 0.7043 GB, free: 13.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/1.436, allocations: 87.94 kB / 0.7044 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002617/1.438, allocations: 0.8566 MB / 0.7052 GB, free: 13 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005294/1.444, allocations: 1.365 MB / 0.7065 GB, free: 11.63 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/1.456, allocations: 7.678 MB / 0.714 GB, free: 3.809 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0054/1.461, allocations: 331.2 kB / 0.7144 GB, free: 3.484 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001464/1.463, allocations: 304 kB / 0.7146 GB, free: 3.188 MB / 0.5138 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.008606/1.472, allocations: 3.521 MB / 0.7181 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001534/1.473, allocations: 403.1 kB / 0.7185 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01362/1.487, allocations: 5.98 MB / 0.7243 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.531e-05/1.487, allocations: 40 kB / 0.7243 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.154e-05/1.487, allocations: 8 kB / 0.7243 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.222e-05/1.487, allocations: 19.92 kB / 0.7244 GB, free: 9.168 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03542/1.522, allocations: 14.96 MB / 0.739 GB, free: 10.11 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.37e-05/1.522, allocations: 4 kB / 0.739 GB, free: 10.11 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003306/1.526, allocations: 0.6865 MB / 0.7397 GB, free: 9.418 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002377/1.528, allocations: 0.7138 MB / 0.7404 GB, free: 8.703 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007294/1.529, allocations: 83.98 kB / 0.7404 GB, free: 8.621 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/1.54, allocations: 6.714 MB / 0.747 GB, free: 1.77 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/1.54, allocations: 4 kB / 0.747 GB, free: 1.766 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3697/1.909, allocations: 8.768 MB / 0.7556 GB, free: 184 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003184/1.913, allocations: 0.8817 MB / 0.7564 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/1.914, allocations: 77.22 kB / 0.7565 GB, free: 183.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002586/1.916, allocations: 181.5 kB / 0.7567 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007006/1.917, allocations: 265.3 kB / 0.7569 GB, free: 183.6 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002789/1.917, allocations: 114.2 kB / 0.757 GB, free: 183.5 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.00404/1.922, allocations: 2.418 MB / 0.7594 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of sort global known variables: time 3.5e-07/1.922, allocations: 0 / 0.7594 GB, free: 182.7 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.006805/1.928, allocations: 1.547 MB / 0.7609 GB, free: 182.5 MB / 0.5451 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.01347/1.942, allocations: 9.484 MB / 0.7702 GB, free: 178.3 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01096/1.953, allocations: 6.537 MB / 0.7765 GB, free: 175.8 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.953, allocations: 3.75 kB / 0.7765 GB, free: 175.8 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.005553/1.959, allocations: 2.939 MB / 0.7794 GB, free: 174.7 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006781/1.965, allocations: 0.9661 MB / 0.7804 GB, free: 174.3 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08942/2.055, allocations: 52.4 MB / 0.8315 GB, free: 124.8 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009864/2.065, allocations: 5.979 MB / 0.8374 GB, free: 118.8 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005361/2.07, allocations: 1.885 MB / 0.8392 GB, free: 116.9 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00508/2.075, allocations: 3.213 MB / 0.8424 GB, free: 113.7 MB / 0.5451 GB Notification: Performance of SimCode: time 1.022e-06/2.075, allocations: 0 / 0.8424 GB, free: 113.7 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4343/2.51, allocations: 120.1 MB / 0.9596 GB, free: 158.4 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.79/21.3, allocations: 3.844 kB / 0.9596 GB, free: 158.4 MB / 0.5451 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches