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.001819/0.001819, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002317/0.002317, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.801 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.001576/0.001576, allocations: 47.92 kB / 377.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2703, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03178/0.302, allocations: 24.62 MB / 455.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.3232, allocations: 8.172 MB / 463.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006382/0.3296, allocations: 250.8 kB / 464.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02006/0.3497, allocations: 7.641 MB / 471.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01055/0.3602, allocations: 2.84 MB / 474.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006026/0.3663, allocations: 1.844 MB / 476.5 MB, free: 9.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01411/0.3804, allocations: 10.1 MB / 486.6 MB, free: 14.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0223/0.4027, allocations: 13.86 MB / 0.4887 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009519/0.4122, allocations: 5.513 MB / 0.4941 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01002/0.4222, allocations: 5.855 MB / 0.4998 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003973/0.4262, allocations: 1.539 MB / 0.5013 GB, free: 4.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005635/0.4318, allocations: 1.906 MB / 0.5032 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004077/0.4359, allocations: 2.985 MB / 0.5061 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008602/0.4445, allocations: 4.541 MB / 0.5105 GB, free: 10.58 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02588/0.4704, allocations: 20.78 MB / 0.5308 GB, free: 5.734 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.4704, allocations: 3.938 kB / 0.5308 GB, free: 5.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.4704, allocations: 0 / 0.5308 GB, free: 5.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008799/0.4713, allocations: 7.984 kB / 0.5308 GB, free: 5.723 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.3921/0.8633, allocations: 11.99 MB / 0.5426 GB, free: 90.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.8634, allocations: 12.56 kB / 0.5426 GB, free: 90.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005067/0.8685, allocations: 1.542 MB / 0.5441 GB, free: 90.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02889/0.8973, allocations: 5.602 MB / 0.5495 GB, free: 86.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0134/0.9107, allocations: 6.383 MB / 0.5558 GB, free: 80.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007509/0.9115, allocations: 0.7097 MB / 0.5565 GB, free: 79.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003957/0.9155, allocations: 0.9253 MB / 0.5574 GB, free: 78.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0343/0.9498, allocations: 15.26 MB / 0.5723 GB, free: 63.08 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005921/0.9503, allocations: 17.2 kB / 0.5723 GB, free: 63.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003102/0.9534, allocations: 393.3 kB / 0.5727 GB, free: 62.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004612/0.9539, allocations: 0.5155 MB / 0.5732 GB, free: 62.17 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0251/0.979, allocations: 13.73 MB / 0.5866 GB, free: 48.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07321/1.052, allocations: 42.73 MB / 0.6283 GB, free: 5.301 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/1.065, allocations: 7.972 MB / 0.6361 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005498/1.07, allocations: 2.792 MB / 0.6388 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005198/1.071, allocations: 92.25 kB / 0.6389 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001095/1.071, allocations: 69.58 kB / 0.639 GB, free: 11.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 1.058e-05/1.071, allocations: 4 kB / 0.639 GB, free: 11.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03746/1.108, allocations: 14.71 MB / 0.6533 GB, free: 12.94 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/1.109, allocations: 98.36 kB / 0.6534 GB, free: 12.83 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007128/1.116, allocations: 3.734 MB / 0.6571 GB, free: 9.102 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00069/1.116, allocations: 89.7 kB / 0.6572 GB, free: 9.008 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003754/1.12, allocations: 4.188 MB / 0.6613 GB, free: 4.781 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002325/1.122, allocations: 1.41 MB / 0.6626 GB, free: 3.359 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003904/1.126, allocations: 1.184 MB / 0.6638 GB, free: 2.164 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/1.126, allocations: 309.1 kB / 0.6641 GB, free: 1.859 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004783/1.131, allocations: 2.588 MB / 0.6666 GB, free: 15.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007126/1.138, allocations: 5.112 MB / 0.6716 GB, free: 8.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/1.151, allocations: 8.352 MB / 0.6798 GB, free: 15.43 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-05/1.151, allocations: 24 kB / 0.6798 GB, free: 15.41 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01783/1.169, allocations: 8.638 MB / 0.6882 GB, free: 6.742 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.743e-05/1.169, allocations: 40 kB / 0.6883 GB, free: 6.703 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/1.169, allocations: 83.98 kB / 0.6883 GB, free: 6.621 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002452/1.171, allocations: 0.8307 MB / 0.6892 GB, free: 5.789 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005095/1.177, allocations: 1.373 MB / 0.6905 GB, free: 4.414 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/1.189, allocations: 7.383 MB / 0.6977 GB, free: 12.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/1.193, allocations: 327.5 kB / 0.698 GB, free: 12.58 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/1.194, allocations: 308 kB / 0.6983 GB, free: 12.28 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.006612/1.2, allocations: 3.519 MB / 0.7017 GB, free: 8.746 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/1.202, allocations: 429.3 kB / 0.7022 GB, free: 8.324 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.213, allocations: 5.949 MB / 0.708 GB, free: 2.336 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.826e-05/1.214, allocations: 40 kB / 0.708 GB, free: 2.297 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/1.214, allocations: 7.938 kB / 0.708 GB, free: 2.289 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.35e-05/1.214, allocations: 27.92 kB / 0.708 GB, free: 2.262 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02806/1.242, allocations: 14.33 MB / 0.722 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.242, allocations: 4 kB / 0.722 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002768/1.244, allocations: 0.6988 MB / 0.7227 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/1.246, allocations: 0.6936 MB / 0.7234 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/1.247, allocations: 91.97 kB / 0.7235 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/1.257, allocations: 6.434 MB / 0.7298 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/1.257, allocations: 7.938 kB / 0.7298 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01456/1.271, allocations: 8.757 MB / 0.7383 GB, free: 2.859 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/1.274, allocations: 0.8563 MB / 0.7392 GB, free: 2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007267/1.274, allocations: 79.92 kB / 0.7392 GB, free: 1.922 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/1.276, allocations: 187.8 kB / 0.7394 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005192/1.277, allocations: 282.5 kB / 0.7397 GB, free: 1.461 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002511/1.277, allocations: 120 kB / 0.7398 GB, free: 1.344 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003881/1.281, allocations: 2.404 MB / 0.7421 GB, free: 14.95 MB / 0.5607 GB Notification: Performance of sort global known variables: time 7e-08/1.281, allocations: 0 / 0.7421 GB, free: 14.95 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005612/1.287, allocations: 1.551 MB / 0.7437 GB, free: 13.4 MB / 0.5607 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.01492/1.302, allocations: 9.474 MB / 0.7529 GB, free: 3.789 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.2106/1.512, allocations: 6.267 MB / 0.759 GB, free: 206.8 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.512, allocations: 2.25 kB / 0.759 GB, free: 206.8 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00496/1.517, allocations: 2.734 MB / 0.7617 GB, free: 206.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004526/1.522, allocations: 0.9592 MB / 0.7626 GB, free: 206.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06421/1.586, allocations: 52.58 MB / 0.814 GB, free: 161.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00492/1.591, allocations: 5.516 MB / 0.8194 GB, free: 156 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00433/1.595, allocations: 1.885 MB / 0.8212 GB, free: 154.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004109/1.599, allocations: 3.229 MB / 0.8244 GB, free: 150.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.523e-06/1.599, allocations: 0 / 0.8244 GB, free: 150.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1614/1.761, allocations: 123.2 MB / 0.9447 GB, free: 28.48 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.21/18.97, allocations: 7.469 kB / 0.9447 GB, free: 28.48 MB / 0.5607 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.526877544354647]