Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 205.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 47.92 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2462, allocations: 53.36 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03092/0.2771, allocations: 24.62 MB / 455.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.2952, allocations: 8.17 MB / 463.9 MB, free: 5.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00554/0.3008, allocations: 258.6 kB / 464.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01955/0.3203, allocations: 7.634 MB / 471.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.3305, allocations: 2.86 MB / 474.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006148/0.3366, allocations: 1.859 MB / 476.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01384/0.3504, allocations: 10.11 MB / 486.6 MB, free: 14.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02398/0.3744, allocations: 14.04 MB / 0.4889 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007851/0.3823, allocations: 5.513 MB / 0.4943 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009429/0.3917, allocations: 6.132 MB / 0.5003 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003378/0.3951, allocations: 1.539 MB / 0.5018 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004561/0.3996, allocations: 1.917 MB / 0.5037 GB, free: 1.605 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00352/0.4032, allocations: 2.996 MB / 0.5066 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00788/0.411, allocations: 4.541 MB / 0.511 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02303/0.4341, allocations: 20.77 MB / 0.5313 GB, free: 5.203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.4341, allocations: 4 kB / 0.5313 GB, free: 5.199 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4341, allocations: 4 kB / 0.5313 GB, free: 5.195 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004435/0.4345, allocations: 0 / 0.5313 GB, free: 5.195 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.2457/0.6803, allocations: 12 MB / 0.5431 GB, free: 50.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.6803, allocations: 9.844 kB / 0.5431 GB, free: 50.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004121/0.6844, allocations: 1.54 MB / 0.5446 GB, free: 50.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02848/0.7129, allocations: 5.597 MB / 0.55 GB, free: 49.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.7272, allocations: 6.386 MB / 0.5563 GB, free: 49.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005183/0.7278, allocations: 0.7039 MB / 0.557 GB, free: 48.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003559/0.7313, allocations: 0.9263 MB / 0.5579 GB, free: 48.53 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02738/0.7587, allocations: 15.26 MB / 0.5728 GB, free: 36.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002347/0.7589, allocations: 7.953 kB / 0.5728 GB, free: 36.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.76, allocations: 395.3 kB / 0.5732 GB, free: 35.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000375/0.7603, allocations: 0.5226 MB / 0.5737 GB, free: 35.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02324/0.7836, allocations: 13.72 MB / 0.5871 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06942/0.853, allocations: 42.74 MB / 0.6288 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01366/0.8667, allocations: 7.972 MB / 0.6366 GB, free: 4.219 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004277/0.8709, allocations: 2.795 MB / 0.6393 GB, free: 1.434 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003133/0.8712, allocations: 98.92 kB / 0.6394 GB, free: 1.336 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.829e-05/0.8713, allocations: 77.58 kB / 0.6395 GB, free: 1.25 MB / 478.1 MB Notification: Performance of pre-optimization done (n=384): time 6.381e-06/0.8713, allocations: 0 / 0.6395 GB, free: 1.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=392): time 0.02925/0.9006, allocations: 14.69 MB / 0.6538 GB, free: 2.656 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.9006, allocations: 94.14 kB / 0.6539 GB, free: 2.555 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005538/0.9062, allocations: 3.742 MB / 0.6576 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004298/0.9066, allocations: 89.64 kB / 0.6577 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003095/0.9097, allocations: 4.197 MB / 0.6618 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001506/0.9112, allocations: 1.407 MB / 0.6631 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/0.913, allocations: 1.183 MB / 0.6643 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.9132, allocations: 301.1 kB / 0.6646 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004096/0.9173, allocations: 2.592 MB / 0.6671 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/0.9234, allocations: 5.107 MB / 0.6721 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.9344, allocations: 8.348 MB / 0.6802 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-05/0.9344, allocations: 24 kB / 0.6803 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01504/0.9495, allocations: 8.638 MB / 0.6887 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.977e-05/0.9496, allocations: 40 kB / 0.6887 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/0.9497, allocations: 84 kB / 0.6888 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/0.9521, allocations: 0.8309 MB / 0.6896 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005446/0.9575, allocations: 1.371 MB / 0.691 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.9692, allocations: 7.4 MB / 0.6982 GB, free: 3.746 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004241/0.9735, allocations: 331.5 kB / 0.6985 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007408/0.9742, allocations: 308 kB / 0.6988 GB, free: 3.121 MB / 0.5294 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.006536/0.9807, allocations: 3.51 MB / 0.7022 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/0.9819, allocations: 429.2 kB / 0.7026 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01103/0.9929, allocations: 5.943 MB / 0.7084 GB, free: 9.328 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.574e-05/0.9929, allocations: 44 kB / 0.7085 GB, free: 9.285 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.993, allocations: 8 kB / 0.7085 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-05/0.993, allocations: 23.3 kB / 0.7085 GB, free: 9.258 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02768/1.021, allocations: 14.33 MB / 0.7225 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.29e-05/1.021, allocations: 8 kB / 0.7225 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/1.024, allocations: 0.7013 MB / 0.7232 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/1.026, allocations: 0.6858 MB / 0.7239 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003663/1.026, allocations: 91.91 kB / 0.724 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009854/1.036, allocations: 6.436 MB / 0.7302 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.036, allocations: 7.562 kB / 0.7303 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01564/1.052, allocations: 8.756 MB / 0.7388 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003073/1.055, allocations: 0.8562 MB / 0.7396 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009193/1.056, allocations: 76.05 kB / 0.7397 GB, free: 9.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/1.058, allocations: 175.8 kB / 0.7399 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005655/1.058, allocations: 292.2 kB / 0.7402 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002519/1.059, allocations: 116 kB / 0.7403 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004734/1.063, allocations: 2.408 MB / 0.7426 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/1.063, allocations: 0 / 0.7426 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007184/1.07, allocations: 1.551 MB / 0.7441 GB, free: 4.734 MB / 0.5762 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.01544/1.086, allocations: 9.479 MB / 0.7534 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.097, allocations: 6.272 MB / 0.7595 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.097, allocations: 0 / 0.7595 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00494/1.102, allocations: 2.727 MB / 0.7622 GB, free: 2.508 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004966/1.107, allocations: 0.9555 MB / 0.7631 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4447/1.552, allocations: 52.59 MB / 0.8145 GB, free: 200.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004689/1.557, allocations: 5.523 MB / 0.8199 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003768/1.56, allocations: 1.879 MB / 0.8217 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003276/1.564, allocations: 3.233 MB / 0.8249 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of SimCode: time 9.31e-07/1.564, allocations: 5.641 kB / 0.8249 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1593/1.723, allocations: 126.1 MB / 0.948 GB, free: 64.31 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.99/18.71, allocations: 3.375 kB / 0.948 GB, free: 64.31 MB / 0.5919 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable quadraticSpeedDependentTorqueQS.phi in file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.23431211200659]