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.001722/0.001722, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 213.9 kB / 23.73 MB, free: 4.164 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.537/1.537, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.00194/0.00194, allocations: 59.91 kB / 377.8 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.2226, allocations: 53.42 MB / 431.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02933/0.252, allocations: 24.63 MB / 455.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01622/0.2682, allocations: 8.168 MB / 464 MB, free: 5.516 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004668/0.2729, allocations: 250.8 kB / 464.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01902/0.2919, allocations: 7.631 MB / 471.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009578/0.3015, allocations: 2.832 MB / 474.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005485/0.3069, allocations: 1.861 MB / 476.6 MB, free: 8.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.3197, allocations: 10.09 MB / 486.6 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02269/0.3424, allocations: 13.87 MB / 0.4888 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008291/0.3507, allocations: 5.502 MB / 0.4942 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009707/0.3604, allocations: 5.859 MB / 0.4999 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003646/0.364, allocations: 1.539 MB / 0.5014 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005228/0.3693, allocations: 1.902 MB / 0.5032 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004331/0.3736, allocations: 2.985 MB / 0.5061 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008545/0.3821, allocations: 4.541 MB / 0.5106 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02394/0.4061, allocations: 20.79 MB / 0.5309 GB, free: 5.555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4061, allocations: 0 / 0.5309 GB, free: 5.555 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4061, allocations: 0 / 0.5309 GB, free: 5.555 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004275/0.4065, allocations: 0 / 0.5309 GB, free: 5.555 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.3957/0.8022, allocations: 12.01 MB / 0.5426 GB, free: 90.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.8023, allocations: 11.86 kB / 0.5426 GB, free: 90.87 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004639/0.8069, allocations: 1.542 MB / 0.5441 GB, free: 90.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/0.8357, allocations: 5.601 MB / 0.5496 GB, free: 85.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.848, allocations: 6.383 MB / 0.5558 GB, free: 79.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005774/0.8485, allocations: 0.7061 MB / 0.5565 GB, free: 79.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003028/0.8516, allocations: 0.9254 MB / 0.5574 GB, free: 78.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02987/0.8814, allocations: 15.26 MB / 0.5723 GB, free: 62.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004359/0.8819, allocations: 15.89 kB / 0.5723 GB, free: 62.76 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002526/0.8844, allocations: 403.3 kB / 0.5727 GB, free: 62.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003953/0.8848, allocations: 0.5155 MB / 0.5732 GB, free: 61.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02352/0.9083, allocations: 13.72 MB / 0.5866 GB, free: 48.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06358/0.9719, allocations: 42.72 MB / 0.6283 GB, free: 5.004 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.9838, allocations: 7.988 MB / 0.6361 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004476/0.9883, allocations: 2.784 MB / 0.6389 GB, free: 11.47 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003184/0.9886, allocations: 98.92 kB / 0.639 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.842e-05/0.9887, allocations: 69.58 kB / 0.639 GB, free: 11.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 6.222e-06/0.9887, allocations: 0 / 0.639 GB, free: 11.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03166/1.02, allocations: 14.72 MB / 0.6534 GB, free: 12.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.073e-05/1.02, allocations: 90.48 kB / 0.6535 GB, free: 12.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005668/1.026, allocations: 3.738 MB / 0.6571 GB, free: 8.785 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004613/1.027, allocations: 89.7 kB / 0.6572 GB, free: 8.691 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003041/1.03, allocations: 4.184 MB / 0.6613 GB, free: 4.469 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/1.031, allocations: 1.41 MB / 0.6627 GB, free: 3.047 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/1.033, allocations: 1.18 MB / 0.6638 GB, free: 1.855 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/1.033, allocations: 301.1 kB / 0.6641 GB, free: 1.559 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003991/1.037, allocations: 2.592 MB / 0.6667 GB, free: 14.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006056/1.043, allocations: 5.116 MB / 0.6717 GB, free: 8.664 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01119/1.054, allocations: 8.344 MB / 0.6798 GB, free: 15.13 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.116e-05/1.054, allocations: 24 kB / 0.6798 GB, free: 15.11 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01578/1.07, allocations: 8.646 MB / 0.6883 GB, free: 6.434 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.583e-05/1.07, allocations: 40 kB / 0.6883 GB, free: 6.395 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.07, allocations: 84 kB / 0.6884 GB, free: 6.312 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/1.073, allocations: 0.8264 MB / 0.6892 GB, free: 5.484 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004697/1.077, allocations: 1.373 MB / 0.6905 GB, free: 4.109 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/1.089, allocations: 7.383 MB / 0.6977 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/1.093, allocations: 335.4 kB / 0.6981 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009468/1.094, allocations: 312 kB / 0.6984 GB, free: 11.96 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.006657/1.101, allocations: 3.509 MB / 0.7018 GB, free: 8.438 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001262/1.102, allocations: 429.3 kB / 0.7022 GB, free: 8.016 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01199/1.114, allocations: 5.953 MB / 0.708 GB, free: 2.023 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.591e-05/1.114, allocations: 40 kB / 0.708 GB, free: 1.984 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.114, allocations: 8 kB / 0.7081 GB, free: 1.977 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-05/1.114, allocations: 27.86 kB / 0.7081 GB, free: 1.949 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03039/1.144, allocations: 14.32 MB / 0.7221 GB, free: 3.484 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/1.144, allocations: 4 kB / 0.7221 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002916/1.147, allocations: 0.6982 MB / 0.7228 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/1.149, allocations: 0.6942 MB / 0.7234 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004092/1.15, allocations: 87.97 kB / 0.7235 GB, free: 2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/1.16, allocations: 6.446 MB / 0.7298 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.16, allocations: 7.938 kB / 0.7298 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/1.176, allocations: 8.753 MB / 0.7384 GB, free: 2.551 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002839/1.179, allocations: 0.8523 MB / 0.7392 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009135/1.18, allocations: 79.88 kB / 0.7393 GB, free: 1.617 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002337/1.182, allocations: 179.8 kB / 0.7394 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005969/1.183, allocations: 286.5 kB / 0.7397 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002875/1.183, allocations: 120 kB / 0.7398 GB, free: 1.043 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004654/1.188, allocations: 2.408 MB / 0.7422 GB, free: 14.65 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.5e-07/1.188, allocations: 0 / 0.7422 GB, free: 14.65 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00618/1.194, allocations: 1.551 MB / 0.7437 GB, free: 13.1 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.01545/1.21, allocations: 9.474 MB / 0.7529 GB, free: 3.484 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.2089/1.418, allocations: 6.264 MB / 0.7591 GB, free: 206.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/1.418, allocations: 1.188 kB / 0.7591 GB, free: 206.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004678/1.423, allocations: 2.731 MB / 0.7617 GB, free: 206.4 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00407/1.427, allocations: 0.9647 MB / 0.7627 GB, free: 206.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.066/1.493, allocations: 52.59 MB / 0.814 GB, free: 161.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005877/1.499, allocations: 5.52 MB / 0.8194 GB, free: 155.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004153/1.503, allocations: 1.881 MB / 0.8213 GB, free: 153.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003847/1.507, allocations: 3.237 MB / 0.8244 GB, free: 150.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.102e-06/1.507, allocations: 0 / 0.8244 GB, free: 150.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/1.668, allocations: 123.2 MB / 0.9447 GB, free: 27.93 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/19.07, allocations: 8.062 kB / 0.9447 GB, free: 27.93 MB / 0.5607 GB " [Timeout remaining time 641] (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: 21.73551243590191]