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.001477/0.001477, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3101, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03488/0.345, allocations: 28.61 MB / 437.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02214/0.3672, allocations: 8.489 MB / 445.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007289/0.3745, allocations: 215.3 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0211/0.3957, allocations: 8.154 MB / 454.3 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01108/0.4068, allocations: 2.789 MB / 457.1 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006721/0.4135, allocations: 1.883 MB / 458.9 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01643/0.43, allocations: 10.02 MB / 469 MB, free: 5.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04141/0.4714, allocations: 21.37 MB / 490.3 MB, free: 15.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01124/0.4827, allocations: 5.353 MB / 495.7 MB, free: 10.26 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01266/0.4954, allocations: 6.077 MB / 0.49 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005445/0.501, allocations: 1.543 MB / 0.4915 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007298/0.5083, allocations: 1.918 MB / 0.4934 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006079/0.5144, allocations: 2.985 MB / 0.4963 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01261/0.5271, allocations: 5.844 MB / 0.502 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02978/0.5569, allocations: 20.7 MB / 0.5222 GB, free: 3.078 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.445e-06/0.557, allocations: 0 / 0.5222 GB, free: 3.078 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.557, allocations: 4 kB / 0.5222 GB, free: 3.074 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006179/0.5576, allocations: 0 / 0.5222 GB, free: 3.074 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.04114/0.5987, allocations: 12.1 MB / 0.534 GB, free: 6.863 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.5988, allocations: 8.031 kB / 0.534 GB, free: 6.855 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006857/0.6057, allocations: 1.54 MB / 0.5355 GB, free: 5.305 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4918/1.097, allocations: 5.671 MB / 0.5411 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01578/1.113, allocations: 6.327 MB / 0.5473 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006047/1.114, allocations: 0.7019 MB / 0.5479 GB, free: 108.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003579/1.118, allocations: 0.9326 MB / 0.5488 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0372/1.155, allocations: 15.08 MB / 0.5636 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004303/1.155, allocations: 15.83 kB / 0.5636 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003177/1.158, allocations: 394.6 kB / 0.564 GB, free: 100.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004477/1.159, allocations: 0.5194 MB / 0.5645 GB, free: 100.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0272/1.186, allocations: 13.75 MB / 0.5779 GB, free: 86.61 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0758/1.262, allocations: 47.69 MB / 0.6245 GB, free: 38.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01601/1.278, allocations: 28.59 MB / 0.6524 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005412/1.283, allocations: 3.081 MB / 0.6554 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006781/1.284, allocations: 321.5 kB / 0.6557 GB, free: 2.656 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.588e-05/1.284, allocations: 73.52 kB / 0.6558 GB, free: 2.574 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.7e-06/1.284, allocations: 4 kB / 0.6558 GB, free: 2.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03944/1.324, allocations: 14.89 MB / 0.6703 GB, free: 3.781 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/1.324, allocations: 102.4 kB / 0.6704 GB, free: 3.668 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008179/1.332, allocations: 3.608 MB / 0.6739 GB, free: 68 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008043/1.333, allocations: 90.78 kB / 0.674 GB, free: 15.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003854/1.337, allocations: 4.196 MB / 0.6781 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002112/1.339, allocations: 1.407 MB / 0.6795 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003798/1.343, allocations: 1.168 MB / 0.6806 GB, free: 9.215 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/1.343, allocations: 305.1 kB / 0.6809 GB, free: 8.914 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005186/1.348, allocations: 2.592 MB / 0.6835 GB, free: 6.316 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0078/1.356, allocations: 5.084 MB / 0.6884 GB, free: 60 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/1.369, allocations: 8.337 MB / 0.6966 GB, free: 6.535 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/1.37, allocations: 24 kB / 0.6966 GB, free: 6.512 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02006/1.39, allocations: 8.661 MB / 0.7051 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/1.39, allocations: 43.94 kB / 0.7051 GB, free: 13.78 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001886/1.39, allocations: 83.94 kB / 0.7052 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/1.393, allocations: 0.8538 MB / 0.706 GB, free: 12.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005495/1.398, allocations: 1.365 MB / 0.7073 GB, free: 11.48 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/1.411, allocations: 7.681 MB / 0.7148 GB, free: 3.652 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005228/1.417, allocations: 335.5 kB / 0.7152 GB, free: 3.324 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/1.418, allocations: 304 kB / 0.7155 GB, free: 3.027 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.009135/1.428, allocations: 3.514 MB / 0.7189 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/1.429, allocations: 433.3 kB / 0.7193 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01596/1.445, allocations: 5.988 MB / 0.7251 GB, free: 9.047 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.609e-05/1.445, allocations: 43.98 kB / 0.7252 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-05/1.445, allocations: 8 kB / 0.7252 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001152/1.446, allocations: 19.92 kB / 0.7252 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03805/1.484, allocations: 14.96 MB / 0.7398 GB, free: 9.906 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.332e-05/1.484, allocations: 4 kB / 0.7398 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003504/1.487, allocations: 0.6982 MB / 0.7405 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/1.49, allocations: 0.7096 MB / 0.7412 GB, free: 8.492 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007602/1.491, allocations: 87.92 kB / 0.7413 GB, free: 8.406 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.501, allocations: 6.714 MB / 0.7478 GB, free: 1.555 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/1.502, allocations: 7.938 kB / 0.7478 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2951/1.797, allocations: 8.776 MB / 0.7564 GB, free: 183.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002631/1.799, allocations: 0.8966 MB / 0.7573 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.801, allocations: 79.41 kB / 0.7574 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002741/1.803, allocations: 186.3 kB / 0.7575 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008118/1.804, allocations: 265.9 kB / 0.7578 GB, free: 183.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003463/1.805, allocations: 114.3 kB / 0.7579 GB, free: 183.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00432/1.809, allocations: 2.417 MB / 0.7603 GB, free: 182.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.52e-07/1.809, allocations: 0 / 0.7603 GB, free: 182.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007337/1.816, allocations: 1.554 MB / 0.7618 GB, free: 182.3 MB / 0.545 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.01497/1.831, allocations: 9.496 MB / 0.7711 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01101/1.842, allocations: 6.542 MB / 0.7775 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.842, allocations: 3.938 kB / 0.7775 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004951/1.847, allocations: 2.952 MB / 0.7803 GB, free: 174.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006732/1.854, allocations: 0.9657 MB / 0.7813 GB, free: 174.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09871/1.953, allocations: 52.67 MB / 0.8327 GB, free: 124 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009823/1.963, allocations: 5.975 MB / 0.8385 GB, free: 118 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005483/1.968, allocations: 1.889 MB / 0.8404 GB, free: 116.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00517/1.973, allocations: 3.213 MB / 0.8435 GB, free: 112.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/1.973, allocations: 4 kB / 0.8435 GB, free: 112.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4298/2.403, allocations: 119.7 MB / 0.9605 GB, free: 156.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20/22.4, allocations: 9.656 kB / 0.9605 GB, free: 156.9 MB / 0.545 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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