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.00141/0.00141, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001505/0.001505, allocations: 212.3 kB / 23.74 MB, free: 4.672 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.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001525/0.001525, allocations: 47.92 kB / 377.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2609, allocations: 53.36 MB / 431.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03326/0.2942, allocations: 28.81 MB / 460 MB, free: 9.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.3129, allocations: 8.532 MB / 468.5 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005722/0.3186, allocations: 254.8 kB / 468.8 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02035/0.3389, allocations: 8.298 MB / 477.1 MB, free: 8.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.3496, allocations: 2.915 MB / 480 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006319/0.356, allocations: 1.931 MB / 481.9 MB, free: 3.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.3715, allocations: 10.11 MB / 492 MB, free: 9.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02791/0.3994, allocations: 14.04 MB / 0.4942 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009912/0.4093, allocations: 5.49 MB / 0.4996 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01125/0.4206, allocations: 6.144 MB / 0.5056 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004658/0.4252, allocations: 1.547 MB / 0.5071 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006562/0.4318, allocations: 1.933 MB / 0.509 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005887/0.4377, allocations: 2.989 MB / 0.5119 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01286/0.4505, allocations: 5.848 MB / 0.5176 GB, free: 3.578 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4803/0.9309, allocations: 20.69 MB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.9309, allocations: 0.6875 kB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.9309, allocations: 0 / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005717/0.9314, allocations: 0.625 kB / 0.5378 GB, free: 37.98 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.03675/0.9682, allocations: 12.02 MB / 0.5495 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.9682, allocations: 8.906 kB / 0.5496 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00593/0.9742, allocations: 1.541 MB / 0.5511 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03095/1.005, allocations: 5.599 MB / 0.5565 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01486/1.02, allocations: 6.385 MB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007306/1.021, allocations: 0.7014 MB / 0.5634 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004012/1.025, allocations: 0.9303 MB / 0.5644 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/1.058, allocations: 15.11 MB / 0.5791 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003358/1.058, allocations: 19.94 kB / 0.5791 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002607/1.061, allocations: 387.2 kB / 0.5795 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003654/1.061, allocations: 0.5165 MB / 0.58 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02521/1.086, allocations: 13.79 MB / 0.5935 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08089/1.167, allocations: 46.6 MB / 0.639 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0138/1.181, allocations: 8.06 MB / 0.6469 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004775/1.186, allocations: 2.792 MB / 0.6496 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003497/1.186, allocations: 123.1 kB / 0.6497 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.748e-05/1.186, allocations: 73.42 kB / 0.6498 GB, free: 344 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 5.781e-06/1.186, allocations: 4 kB / 0.6498 GB, free: 340 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03238/1.218, allocations: 14.75 MB / 0.6642 GB, free: 1.574 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/1.219, allocations: 90.48 kB / 0.6643 GB, free: 1.473 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006931/1.225, allocations: 3.612 MB / 0.6678 GB, free: 13.87 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001029/1.227, allocations: 93.7 kB / 0.6679 GB, free: 13.77 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004089/1.231, allocations: 4.192 MB / 0.672 GB, free: 9.57 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001876/1.232, allocations: 1.404 MB / 0.6733 GB, free: 8.184 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00185/1.234, allocations: 1.176 MB / 0.6745 GB, free: 6.996 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001355/1.234, allocations: 305.1 kB / 0.6748 GB, free: 6.695 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/1.239, allocations: 2.592 MB / 0.6773 GB, free: 4.102 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006463/1.245, allocations: 5.096 MB / 0.6823 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01246/1.258, allocations: 8.345 MB / 0.6904 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.682e-05/1.258, allocations: 24 kB / 0.6905 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01818/1.276, allocations: 8.659 MB / 0.6989 GB, free: 12.49 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.349e-05/1.276, allocations: 40 kB / 0.699 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/1.276, allocations: 86.52 kB / 0.699 GB, free: 12.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/1.279, allocations: 0.8503 MB / 0.6999 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005391/1.284, allocations: 1.369 MB / 0.7012 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/1.296, allocations: 7.589 MB / 0.7086 GB, free: 2.594 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004743/1.301, allocations: 323.5 kB / 0.7089 GB, free: 2.277 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/1.302, allocations: 316 kB / 0.7092 GB, free: 1.969 MB / 0.545 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.00744/1.309, allocations: 3.519 MB / 0.7127 GB, free: 14.54 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.311, allocations: 429.3 kB / 0.7131 GB, free: 14.12 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/1.322, allocations: 5.955 MB / 0.7189 GB, free: 8.156 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.189e-05/1.322, allocations: 48 kB / 0.7189 GB, free: 8.109 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/1.322, allocations: 8 kB / 0.7189 GB, free: 8.102 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.612e-05/1.322, allocations: 19.92 kB / 0.719 GB, free: 8.082 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03097/1.353, allocations: 14.97 MB / 0.7336 GB, free: 9.188 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/1.353, allocations: 8.094 kB / 0.7336 GB, free: 9.18 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0029/1.356, allocations: 0.6962 MB / 0.7343 GB, free: 8.52 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/1.358, allocations: 0.7171 MB / 0.735 GB, free: 7.801 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004084/1.358, allocations: 94.42 kB / 0.7351 GB, free: 7.711 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009764/1.368, allocations: 6.612 MB / 0.7415 GB, free: 1.012 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.368, allocations: 6.906 kB / 0.7415 GB, free: 1.008 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/1.383, allocations: 8.777 MB / 0.7501 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003232/1.386, allocations: 0.8485 MB / 0.7509 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001051/1.387, allocations: 83.94 kB / 0.751 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/1.39, allocations: 179.8 kB / 0.7512 GB, free: 7.031 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006033/1.39, allocations: 278 kB / 0.7514 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002547/1.391, allocations: 120 kB / 0.7516 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004831/1.396, allocations: 2.423 MB / 0.7539 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/1.396, allocations: 0 / 0.7539 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008541/1.404, allocations: 1.551 MB / 0.7554 GB, free: 2.688 MB / 0.5919 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.2595/1.664, allocations: 9.486 MB / 0.7647 GB, free: 225.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.008703/1.672, allocations: 6.282 MB / 0.7708 GB, free: 223 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/1.672, allocations: 3.969 kB / 0.7708 GB, free: 223 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003762/1.676, allocations: 2.739 MB / 0.7735 GB, free: 221.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/1.68, allocations: 0.9654 MB / 0.7745 GB, free: 221.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07374/1.754, allocations: 52.71 MB / 0.8259 GB, free: 180.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005497/1.759, allocations: 5.975 MB / 0.8318 GB, free: 174.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004186/1.764, allocations: 1.885 MB / 0.8336 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003807/1.767, allocations: 3.229 MB / 0.8368 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.103e-06/1.767, allocations: 0 / 0.8368 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1785/1.946, allocations: 126.3 MB / 0.9601 GB, free: 43.42 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.39/23.34, allocations: 15.38 kB / 0.9601 GB, free: 43.41 MB / 0.5919 GB " [Timeout remaining time 636] (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: 25.92702200400163]