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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 71.89 kB / 373 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1075, allocations: 53.38 MB / 426.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2533/0.3608, allocations: 28.73 MB / 455.1 MB, free: 9.055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02196/0.3828, allocations: 8.517 MB / 463.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007086/0.3899, allocations: 252.2 kB / 463.9 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02145/0.4113, allocations: 8.274 MB / 472.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.4238, allocations: 2.843 MB / 475 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006806/0.4306, allocations: 1.886 MB / 476.9 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01689/0.4475, allocations: 10.03 MB / 486.9 MB, free: 3.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03325/0.4808, allocations: 16.33 MB / 0.4915 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01113/0.4919, allocations: 5.455 MB / 0.4968 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01198/0.5039, allocations: 6.124 MB / 0.5028 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005384/0.5093, allocations: 1.539 MB / 0.5043 GB, free: 6.574 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008219/0.5175, allocations: 1.929 MB / 0.5062 GB, free: 4.645 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005831/0.5233, allocations: 2.989 MB / 0.5091 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01235/0.5357, allocations: 5.848 MB / 0.5148 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02972/0.5654, allocations: 20.69 MB / 0.535 GB, free: 7.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5654, allocations: 4 kB / 0.535 GB, free: 7.016 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5654, allocations: 0 / 0.535 GB, free: 7.016 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005577/0.566, allocations: 0 / 0.535 GB, free: 7.016 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.039/0.605, allocations: 12.1 MB / 0.5468 GB, free: 10.81 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.605, allocations: 12.03 kB / 0.5468 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005481/0.6105, allocations: 1.54 MB / 0.5483 GB, free: 9.246 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03237/0.6429, allocations: 5.59 MB / 0.5538 GB, free: 3.645 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/0.6571, allocations: 6.334 MB / 0.56 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007287/0.6578, allocations: 0.7103 MB / 0.5607 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00359/0.6614, allocations: 0.9373 MB / 0.5616 GB, free: 11.61 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03941/0.7008, allocations: 15.1 MB / 0.5763 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003332/0.7012, allocations: 19.88 kB / 0.5763 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002853/0.704, allocations: 396 kB / 0.5767 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006144/0.7046, allocations: 0.5117 MB / 0.5772 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03244/0.7371, allocations: 13.78 MB / 0.5907 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5471/1.284, allocations: 47.69 MB / 0.6373 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02041/1.305, allocations: 28.23 MB / 0.6648 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005591/1.31, allocations: 2.803 MB / 0.6676 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005968/1.311, allocations: 343.6 kB / 0.6679 GB, free: 102 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.419e-05/1.311, allocations: 75.3 kB / 0.668 GB, free: 101.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 1.003e-05/1.311, allocations: 1.094 kB / 0.668 GB, free: 101.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03351/1.344, allocations: 14.91 MB / 0.6825 GB, free: 96.46 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/1.344, allocations: 97.67 kB / 0.6826 GB, free: 96.39 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006195/1.351, allocations: 3.61 MB / 0.6861 GB, free: 95.09 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003816/1.351, allocations: 88.89 kB / 0.6862 GB, free: 95.01 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002306/1.353, allocations: 4.197 MB / 0.6903 GB, free: 92.35 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001249/1.355, allocations: 1.405 MB / 0.6917 GB, free: 91.27 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0024/1.357, allocations: 1.172 MB / 0.6928 GB, free: 90.69 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.745e-05/1.357, allocations: 301.1 kB / 0.6931 GB, free: 90.39 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/1.361, allocations: 2.598 MB / 0.6957 GB, free: 89.41 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004676/1.365, allocations: 5.09 MB / 0.7006 GB, free: 84.64 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008388/1.374, allocations: 8.355 MB / 0.7088 GB, free: 77.96 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.907e-05/1.374, allocations: 27.28 kB / 0.7088 GB, free: 77.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01394/1.388, allocations: 8.647 MB / 0.7173 GB, free: 72.82 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.016e-05/1.388, allocations: 44 kB / 0.7173 GB, free: 72.78 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/1.388, allocations: 84.86 kB / 0.7174 GB, free: 72.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/1.39, allocations: 0.8573 MB / 0.7182 GB, free: 71.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004383/1.395, allocations: 1.369 MB / 0.7196 GB, free: 70.47 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009161/1.404, allocations: 7.678 MB / 0.7271 GB, free: 62.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004297/1.408, allocations: 327.5 kB / 0.7274 GB, free: 62.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009279/1.409, allocations: 316 kB / 0.7277 GB, free: 62.03 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.005743/1.415, allocations: 3.517 MB / 0.7311 GB, free: 58.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.416, allocations: 429.2 kB / 0.7315 GB, free: 58.07 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/1.426, allocations: 5.964 MB / 0.7373 GB, free: 52.08 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/1.426, allocations: 40 kB / 0.7374 GB, free: 52.04 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/1.426, allocations: 7.984 kB / 0.7374 GB, free: 52.03 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/1.426, allocations: 23.92 kB / 0.7374 GB, free: 52.01 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02777/1.454, allocations: 14.95 MB / 0.752 GB, free: 37 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/1.454, allocations: 7.984 kB / 0.752 GB, free: 37 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.457, allocations: 0.702 MB / 0.7527 GB, free: 36.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001977/1.458, allocations: 0.7123 MB / 0.7534 GB, free: 35.58 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003876/1.459, allocations: 91.78 kB / 0.7535 GB, free: 35.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007924/1.467, allocations: 6.723 MB / 0.7601 GB, free: 28.64 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.467, allocations: 8 kB / 0.7601 GB, free: 28.64 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/1.478, allocations: 8.773 MB / 0.7686 GB, free: 19.73 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/1.481, allocations: 0.9081 MB / 0.7695 GB, free: 18.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009069/1.481, allocations: 75.94 kB / 0.7696 GB, free: 18.73 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.484, allocations: 183.8 kB / 0.7698 GB, free: 18.55 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005255/1.484, allocations: 266.7 kB / 0.77 GB, free: 18.29 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/1.484, allocations: 120 kB / 0.7701 GB, free: 18.17 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003878/1.488, allocations: 2.416 MB / 0.7725 GB, free: 15.77 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/1.488, allocations: 0 / 0.7725 GB, free: 15.77 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005854/1.494, allocations: 1.551 MB / 0.774 GB, free: 14.22 MB / 0.5138 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.0115/1.506, allocations: 9.497 MB / 0.7833 GB, free: 4.594 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01007/1.516, allocations: 6.281 MB / 0.7894 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.516, allocations: 0 / 0.7894 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005157/1.521, allocations: 2.744 MB / 0.7921 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005777/1.527, allocations: 0.9673 MB / 0.793 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3439/1.871, allocations: 52.57 MB / 0.8444 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009147/1.88, allocations: 5.976 MB / 0.8502 GB, free: 184.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004924/1.885, allocations: 1.885 MB / 0.8521 GB, free: 184.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004297/1.889, allocations: 3.232 MB / 0.8552 GB, free: 181.6 MB / 0.5607 GB Notification: Performance of SimCode: time 2.194e-06/1.889, allocations: 1.25 kB / 0.8552 GB, free: 181.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1752/2.064, allocations: 121.1 MB / 0.9735 GB, free: 76.52 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.9/21.96, allocations: 3.656 kB / 0.9735 GB, free: 76.52 MB / 0.5607 GB " [Timeout remaining time 638] (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) [Timeout 52.5] 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.1.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) [Timeout 660] "Error: Could not read variable quadraticSpeedDependentTorqueQS.phi in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_trunk_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: 24.650355149060488]