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.001757/0.001757, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002155/0.002155, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001917/0.001917, allocations: 71.89 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2825, allocations: 53.41 MB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03573/0.3182, allocations: 28.8 MB / 460 MB, free: 9.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02025/0.3384, allocations: 8.54 MB / 468.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006944/0.3454, allocations: 250.8 kB / 468.8 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02124/0.3666, allocations: 8.301 MB / 477.1 MB, free: 8.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.3785, allocations: 2.906 MB / 480 MB, free: 5.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00712/0.3857, allocations: 1.94 MB / 482 MB, free: 3.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01649/0.4021, allocations: 10.11 MB / 492.1 MB, free: 9.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03078/0.4329, allocations: 14.03 MB / 0.4942 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01154/0.4445, allocations: 5.49 MB / 0.4996 GB, free: 6.094 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01241/0.4569, allocations: 6.152 MB / 0.5056 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005032/0.4619, allocations: 1.539 MB / 0.5071 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007505/0.4694, allocations: 1.933 MB / 0.509 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00592/0.4753, allocations: 2.989 MB / 0.5119 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01222/0.4876, allocations: 5.844 MB / 0.5176 GB, free: 3.586 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5471/1.035, allocations: 20.69 MB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/1.035, allocations: 0.6094 kB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.216e-06/1.035, allocations: 0.5625 kB / 0.5378 GB, free: 37.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007675/1.035, allocations: 0 / 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.04319/1.079, allocations: 12.02 MB / 0.5496 GB, free: 34.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.079, allocations: 9.719 kB / 0.5496 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006387/1.085, allocations: 1.537 MB / 0.5511 GB, free: 34.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03066/1.116, allocations: 5.599 MB / 0.5566 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01808/1.134, allocations: 6.38 MB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008394/1.135, allocations: 0.7021 MB / 0.5635 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004964/1.14, allocations: 0.9267 MB / 0.5644 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04007/1.18, allocations: 15.12 MB / 0.5791 GB, free: 23.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004731/1.18, allocations: 11.95 kB / 0.5792 GB, free: 23.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003866/1.184, allocations: 393.7 kB / 0.5795 GB, free: 23.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004382/1.184, allocations: 0.5156 MB / 0.58 GB, free: 22.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02907/1.213, allocations: 13.78 MB / 0.5935 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09885/1.312, allocations: 46.61 MB / 0.639 GB, free: 9.945 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01529/1.328, allocations: 8.055 MB / 0.6469 GB, free: 3.195 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005485/1.333, allocations: 2.803 MB / 0.6496 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004997/1.334, allocations: 108.6 kB / 0.6497 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.562e-05/1.334, allocations: 77.56 kB / 0.6498 GB, free: 220 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 7.925e-06/1.334, allocations: 3.984 kB / 0.6498 GB, free: 216 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03835/1.372, allocations: 14.76 MB / 0.6642 GB, free: 1.457 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/1.372, allocations: 98.16 kB / 0.6643 GB, free: 1.352 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0075/1.38, allocations: 3.604 MB / 0.6678 GB, free: 13.75 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007484/1.38, allocations: 89.7 kB / 0.6679 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003779/1.384, allocations: 4.191 MB / 0.672 GB, free: 9.457 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00208/1.386, allocations: 1.412 MB / 0.6734 GB, free: 8.066 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003144/1.389, allocations: 1.172 MB / 0.6745 GB, free: 6.883 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.39, allocations: 305.1 kB / 0.6748 GB, free: 6.582 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0058/1.395, allocations: 2.596 MB / 0.6773 GB, free: 3.98 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008453/1.404, allocations: 5.087 MB / 0.6823 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/1.418, allocations: 8.357 MB / 0.6905 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/1.418, allocations: 24 kB / 0.6905 GB, free: 4.535 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.019/1.437, allocations: 8.653 MB / 0.699 GB, free: 12.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.204e-05/1.437, allocations: 44 kB / 0.699 GB, free: 12.33 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/1.437, allocations: 84.06 kB / 0.6991 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002597/1.439, allocations: 0.8498 MB / 0.6999 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/1.445, allocations: 1.373 MB / 0.7012 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/1.458, allocations: 7.584 MB / 0.7086 GB, free: 2.477 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004661/1.462, allocations: 331.5 kB / 0.709 GB, free: 2.152 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00121/1.464, allocations: 308 kB / 0.7093 GB, free: 1.852 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.007784/1.471, allocations: 3.512 MB / 0.7127 GB, free: 14.43 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/1.473, allocations: 431.5 kB / 0.7131 GB, free: 14 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/1.487, allocations: 5.97 MB / 0.7189 GB, free: 8.027 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.622e-05/1.487, allocations: 40 kB / 0.719 GB, free: 7.988 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/1.487, allocations: 8 kB / 0.719 GB, free: 7.98 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.833e-05/1.487, allocations: 19.92 kB / 0.719 GB, free: 7.961 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03716/1.524, allocations: 14.98 MB / 0.7336 GB, free: 9.059 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-05/1.524, allocations: 4 kB / 0.7336 GB, free: 9.055 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003354/1.528, allocations: 0.6903 MB / 0.7343 GB, free: 8.398 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002373/1.53, allocations: 0.7172 MB / 0.735 GB, free: 7.684 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008253/1.531, allocations: 95.91 kB / 0.7351 GB, free: 7.59 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/1.542, allocations: 6.606 MB / 0.7415 GB, free: 0.8945 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/1.542, allocations: 6.188 kB / 0.7416 GB, free: 0.8906 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/1.559, allocations: 8.772 MB / 0.7501 GB, free: 8.027 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003313/1.562, allocations: 0.8544 MB / 0.751 GB, free: 7.172 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/1.563, allocations: 75.95 kB / 0.751 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002954/1.566, allocations: 179.9 kB / 0.7512 GB, free: 6.922 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009684/1.567, allocations: 282.3 kB / 0.7515 GB, free: 6.648 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004658/1.568, allocations: 124 kB / 0.7516 GB, free: 6.527 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00525/1.573, allocations: 2.415 MB / 0.7539 GB, free: 4.129 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3e-07/1.573, allocations: 4 kB / 0.7539 GB, free: 4.125 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008547/1.582, allocations: 1.551 MB / 0.7555 GB, free: 2.574 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.2751/1.857, allocations: 9.489 MB / 0.7647 GB, free: 224.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01095/1.868, allocations: 6.282 MB / 0.7709 GB, free: 222.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.868, allocations: 0 / 0.7709 GB, free: 222.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004923/1.873, allocations: 2.747 MB / 0.7735 GB, free: 221.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006162/1.879, allocations: 0.9618 MB / 0.7745 GB, free: 221.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09649/1.975, allocations: 52.71 MB / 0.826 GB, free: 180.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009597/1.985, allocations: 5.967 MB / 0.8318 GB, free: 174.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00518/1.99, allocations: 1.885 MB / 0.8336 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005332/1.995, allocations: 3.241 MB / 0.8368 GB, free: 169 MB / 0.5919 GB Notification: Performance of SimCode: time 1.733e-06/1.995, allocations: 0 / 0.8368 GB, free: 169 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1842/2.18, allocations: 126.3 MB / 0.9601 GB, free: 43.14 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.06/24.24, allocations: 19.98 kB / 0.9601 GB, free: 43.12 MB / 0.5919 GB " [Timeout remaining time 636] (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: 26.957757640000636]