Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001824/0.001824, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002322/0.002322, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 55.94 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.276, allocations: 49.15 MB / 396.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03174/0.3077, allocations: 29.4 MB / 425.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02307/0.3308, allocations: 8.576 MB / 434.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008078/0.3389, allocations: 217.8 kB / 434.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02106/0.36, allocations: 8.338 MB / 442.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.3745, allocations: 3.132 MB / 446.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00729/0.3818, allocations: 1.975 MB / 448 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01749/0.3993, allocations: 10.59 MB / 458.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03089/0.4302, allocations: 14.2 MB / 472.8 MB, free: 6.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01095/0.4411, allocations: 5.743 MB / 478.6 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01215/0.4533, allocations: 6.447 MB / 485 MB, free: 10.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00551/0.4588, allocations: 1.582 MB / 486.6 MB, free: 8.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007986/0.4668, allocations: 1.937 MB / 488.5 MB, free: 6.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006649/0.4734, allocations: 3.195 MB / 491.7 MB, free: 3.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01497/0.4884, allocations: 6.128 MB / 497.8 MB, free: 13.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03396/0.5224, allocations: 21.25 MB / 0.5069 GB, free: 8.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.5224, allocations: 0 / 0.5069 GB, free: 8.109 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5224, allocations: 0 / 0.5069 GB, free: 8.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006821/0.5231, allocations: 0 / 0.5069 GB, free: 8.109 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04117/0.5642, allocations: 12.59 MB / 0.5192 GB, free: 11.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.5643, allocations: 15.98 kB / 0.5192 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006121/0.5704, allocations: 1.651 MB / 0.5208 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04703/0.6174, allocations: 8.647 MB / 0.5293 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01605/0.6335, allocations: 5.974 MB / 0.5351 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008459/0.6343, allocations: 0.7426 MB / 0.5359 GB, free: 10.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004642/0.639, allocations: 0.9687 MB / 0.5368 GB, free: 9.324 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04415/0.6831, allocations: 16.59 MB / 0.553 GB, free: 8.648 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000433/0.6836, allocations: 11.91 kB / 0.553 GB, free: 8.637 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003592/0.6872, allocations: 423.9 kB / 0.5534 GB, free: 8.223 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007619/0.6879, allocations: 0.6028 MB / 0.554 GB, free: 7.617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4379/1.126, allocations: 15.98 MB / 0.5696 GB, free: 130 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08096/1.207, allocations: 49.9 MB / 0.6183 GB, free: 96.37 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0177/1.224, allocations: 12.25 MB / 0.6303 GB, free: 86.88 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004458/1.229, allocations: 3.151 MB / 0.6334 GB, free: 83.72 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/1.243, allocations: 9.074 MB / 0.6422 GB, free: 74.88 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/1.243, allocations: 68.62 kB / 0.6423 GB, free: 74.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.458e-06/1.243, allocations: 0 / 0.6423 GB, free: 74.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02387/1.267, allocations: 12.88 MB / 0.6549 GB, free: 62.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/1.267, allocations: 81.59 kB / 0.655 GB, free: 62.13 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004982/1.272, allocations: 4.075 MB / 0.6589 GB, free: 58.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004789/1.273, allocations: 69.7 kB / 0.659 GB, free: 58.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/1.275, allocations: 4.815 MB / 0.6637 GB, free: 53.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008371/1.275, allocations: 1.033 MB / 0.6647 GB, free: 52.18 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001337/1.277, allocations: 1.242 MB / 0.6659 GB, free: 50.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.048e-05/1.277, allocations: 301.1 kB / 0.6662 GB, free: 50.63 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/1.28, allocations: 2.456 MB / 0.6686 GB, free: 48.17 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/1.283, allocations: 5.607 MB / 0.6741 GB, free: 41.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007461/1.291, allocations: 8.682 MB / 0.6826 GB, free: 30.77 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.107e-05/1.291, allocations: 32 kB / 0.6826 GB, free: 30.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01218/1.303, allocations: 8.758 MB / 0.6912 GB, free: 21.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.66e-05/1.303, allocations: 52 kB / 0.6912 GB, free: 21.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.303, allocations: 112 kB / 0.6913 GB, free: 21.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/1.305, allocations: 0.8572 MB / 0.6922 GB, free: 20.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00424/1.31, allocations: 1.404 MB / 0.6935 GB, free: 19.51 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008633/1.318, allocations: 7.476 MB / 0.7008 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00463/1.323, allocations: 355.5 kB / 0.7012 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007633/1.324, allocations: 348 kB / 0.7015 GB, free: 11.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00541/1.329, allocations: 3.68 MB / 0.7051 GB, free: 7.531 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009242/1.33, allocations: 429.3 kB / 0.7055 GB, free: 7.109 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007247/1.337, allocations: 5.051 MB / 0.7104 GB, free: 2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/1.337, allocations: 32 kB / 0.7105 GB, free: 1.969 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.337, allocations: 8 kB / 0.7105 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.561e-05/1.337, allocations: 15.94 kB / 0.7105 GB, free: 1.945 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02274/1.36, allocations: 12.23 MB / 0.7224 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/1.36, allocations: 4 kB / 0.7224 GB, free: 5.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.362, allocations: 0.5187 MB / 0.7229 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/1.364, allocations: 0.7039 MB / 0.7236 GB, free: 4.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/1.365, allocations: 75.86 kB / 0.7237 GB, free: 4.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009743/1.374, allocations: 6.609 MB / 0.7301 GB, free: 13.54 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.374, allocations: 7.938 kB / 0.7302 GB, free: 13.53 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/1.387, allocations: 7.337 MB / 0.7373 GB, free: 6.047 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002494/1.389, allocations: 0.7704 MB / 0.7381 GB, free: 5.273 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006868/1.39, allocations: 52 kB / 0.7381 GB, free: 5.223 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.392, allocations: 167.9 kB / 0.7383 GB, free: 5.059 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004709/1.392, allocations: 213.8 kB / 0.7385 GB, free: 4.848 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/1.392, allocations: 87.98 kB / 0.7386 GB, free: 4.762 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004769/1.397, allocations: 2.676 MB / 0.7412 GB, free: 2.074 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.41e-07/1.397, allocations: 3.938 kB / 0.7412 GB, free: 2.07 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007019/1.404, allocations: 1.555 MB / 0.7427 GB, free: 0.5156 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01293/1.417, allocations: 8.007 MB / 0.7505 GB, free: 8.352 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01117/1.428, allocations: 5.887 MB / 0.7563 GB, free: 2.445 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.428, allocations: 0 / 0.7563 GB, free: 2.445 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004493/1.433, allocations: 2.294 MB / 0.7585 GB, free: 140 kB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2238/1.657, allocations: 0.9369 MB / 0.7594 GB, free: 176.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08459/1.741, allocations: 55.02 MB / 0.8132 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006718/1.748, allocations: 6.204 MB / 0.8192 GB, free: 133 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004637/1.753, allocations: 1.947 MB / 0.8211 GB, free: 131 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004105/1.757, allocations: 3.381 MB / 0.8244 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.593e-06/1.757, allocations: 0 / 0.8244 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1761/1.933, allocations: 123.7 MB / 0.9452 GB, free: 3.738 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.62/23.55, allocations: 3.984 kB / 0.9452 GB, free: 3.734 MB / 0.5138 GB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_3.2.3_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: 26.200151283002924]