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.001643/0.00165, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 59.94 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09636, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2019/0.2983, allocations: 28.61 MB / 386.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01947/0.3179, allocations: 8.49 MB / 394.7 MB, free: 60 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007086/0.325, allocations: 212.6 kB / 394.9 MB, free: 20 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02048/0.3455, allocations: 8.157 MB / 403.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01181/0.3573, allocations: 2.792 MB / 405.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006958/0.3643, allocations: 1.883 MB / 407.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01669/0.381, allocations: 9.947 MB / 417.7 MB, free: 280 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03837/0.4194, allocations: 21.43 MB / 439.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/0.4303, allocations: 5.346 MB / 444.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01064/0.441, allocations: 6.097 MB / 450.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004643/0.4457, allocations: 1.539 MB / 452.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007875/0.4536, allocations: 1.941 MB / 454.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006996/0.4607, allocations: 2.981 MB / 457 MB, free: 8.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01207/0.4728, allocations: 5.856 MB / 462.9 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03016/0.503, allocations: 20.53 MB / 483.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.252e-05/0.5031, allocations: 0 / 483.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5031, allocations: 0 / 483.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007343/0.5038, allocations: 3.938 kB / 483.4 MB, free: 14.29 MB / 398.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.03911/0.543, allocations: 11.91 MB / 495.3 MB, free: 2.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.405e-05/0.5431, allocations: 12.03 kB / 495.3 MB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006054/0.5491, allocations: 1.536 MB / 496.9 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03089/0.58, allocations: 5.6 MB / 0.4907 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/0.5926, allocations: 6.141 MB / 0.4967 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007044/0.5933, allocations: 0.7065 MB / 0.4974 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003612/0.5969, allocations: 0.9334 MB / 0.4983 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03891/0.6359, allocations: 15.08 MB / 0.513 GB, free: 4.109 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003708/0.6363, allocations: 23.83 kB / 0.513 GB, free: 4.086 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003455/0.6397, allocations: 392 kB / 0.5134 GB, free: 3.703 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006634/0.6404, allocations: 0.5078 MB / 0.5139 GB, free: 3.191 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03208/0.6725, allocations: 13.74 MB / 0.5273 GB, free: 5.422 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4054/1.078, allocations: 48.12 MB / 0.5743 GB, free: 103.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01454/1.093, allocations: 28.59 MB / 0.6022 GB, free: 74.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004421/1.097, allocations: 3.076 MB / 0.6052 GB, free: 73.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003566/1.097, allocations: 317.9 kB / 0.6055 GB, free: 72.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/1.097, allocations: 83.41 kB / 0.6056 GB, free: 72.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.201e-06/1.098, allocations: 4 kB / 0.6056 GB, free: 72.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02425/1.122, allocations: 14.77 MB / 0.6201 GB, free: 60.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/1.122, allocations: 94.48 kB / 0.6201 GB, free: 60.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004071/1.126, allocations: 3.603 MB / 0.6237 GB, free: 56.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002815/1.126, allocations: 89.7 kB / 0.6238 GB, free: 56.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/1.128, allocations: 4.049 MB / 0.6277 GB, free: 52.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007574/1.128, allocations: 1.339 MB / 0.629 GB, free: 51.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00126/1.13, allocations: 1.16 MB / 0.6301 GB, free: 50.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.816e-05/1.13, allocations: 313 kB / 0.6304 GB, free: 49.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/1.133, allocations: 2.592 MB / 0.633 GB, free: 47.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003738/1.136, allocations: 5.08 MB / 0.6379 GB, free: 40.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007278/1.144, allocations: 8.344 MB / 0.6461 GB, free: 31.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.271e-05/1.144, allocations: 27.94 kB / 0.6461 GB, free: 31.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01138/1.155, allocations: 8.635 MB / 0.6545 GB, free: 22.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/1.155, allocations: 46.75 kB / 0.6546 GB, free: 22.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.812e-05/1.155, allocations: 84.88 kB / 0.6547 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/1.157, allocations: 0.8498 MB / 0.6555 GB, free: 21.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004193/1.162, allocations: 1.369 MB / 0.6568 GB, free: 20.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008599/1.17, allocations: 7.693 MB / 0.6643 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004281/1.175, allocations: 331.3 kB / 0.6647 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009241/1.175, allocations: 304 kB / 0.665 GB, free: 11.9 MB / 446.1 MB 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.005051/1.181, allocations: 3.505 MB / 0.6684 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009202/1.181, allocations: 415 kB / 0.6688 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008266/1.19, allocations: 5.988 MB / 0.6746 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.19, allocations: 40 kB / 0.6747 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/1.19, allocations: 8 kB / 0.6747 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/1.19, allocations: 23.86 kB / 0.6747 GB, free: 1.875 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02459/1.214, allocations: 15.29 MB / 0.6896 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/1.214, allocations: 4 kB / 0.6896 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/1.217, allocations: 0.6904 MB / 0.6903 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/1.219, allocations: 0.7214 MB / 0.691 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002586/1.219, allocations: 87.97 kB / 0.6911 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009686/1.229, allocations: 6.705 MB / 0.6976 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/1.229, allocations: 7.938 kB / 0.6976 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/1.245, allocations: 8.755 MB / 0.7062 GB, free: 1.172 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/1.248, allocations: 0.8824 MB / 0.7071 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/1.249, allocations: 83.92 kB / 0.7071 GB, free: 188 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2006/1.449, allocations: 191.1 kB / 0.7073 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001309/1.451, allocations: 257.1 kB / 0.7076 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003488/1.451, allocations: 116.9 kB / 0.7077 GB, free: 151.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004393/1.455, allocations: 2.416 MB / 0.71 GB, free: 151.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.455, allocations: 0 / 0.71 GB, free: 151.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005825/1.461, allocations: 1.555 MB / 0.7115 GB, free: 151.5 MB / 478.1 MB 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.01299/1.474, allocations: 9.486 MB / 0.7208 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02549/1.5, allocations: 12.86 MB / 0.7334 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.5, allocations: 0 / 0.7334 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003989/1.504, allocations: 2.954 MB / 0.7363 GB, free: 144.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004445/1.508, allocations: 0.9638 MB / 0.7372 GB, free: 144.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06909/1.577, allocations: 61.08 MB / 0.7968 GB, free: 82.65 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005597/1.583, allocations: 5.971 MB / 0.8027 GB, free: 76.63 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004635/1.588, allocations: 1.877 MB / 0.8045 GB, free: 74.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003732/1.591, allocations: 3.213 MB / 0.8076 GB, free: 71.54 MB / 478.1 MB Notification: Performance of SimCode: time 8.61e-07/1.591, allocations: 0 / 0.8076 GB, free: 71.54 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3159/1.907, allocations: 121.4 MB / 0.9262 GB, free: 139.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.68, allocations: 2.297 kB / 0.9262 GB, free: 139.9 MB / 494.1 MB (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.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