Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002005/0.002005, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_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_0_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.001728/0.001728, allocations: 47.92 kB / 370.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2444, allocations: 52.19 MB / 422.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03123/0.2756, allocations: 24.6 MB / 447.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01957/0.2952, allocations: 8.073 MB / 455.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005007/0.3002, allocations: 254.7 kB / 455.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0195/0.3197, allocations: 7.64 MB / 463.2 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009404/0.3291, allocations: 2.828 MB / 466 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005487/0.3346, allocations: 1.816 MB / 467.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01365/0.3482, allocations: 10.06 MB / 477.9 MB, free: 6.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02776/0.376, allocations: 13.85 MB / 491.7 MB, free: 8.902 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009832/0.3858, allocations: 5.498 MB / 497.2 MB, free: 3.391 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01088/0.3967, allocations: 5.824 MB / 0.4913 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004279/0.401, allocations: 1.539 MB / 0.4928 GB, free: 12.01 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005793/0.4068, allocations: 1.89 MB / 0.4946 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00505/0.4118, allocations: 2.985 MB / 0.4975 GB, free: 7.125 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009277/0.4211, allocations: 4.541 MB / 0.502 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02571/0.4468, allocations: 20.75 MB / 0.5222 GB, free: 13.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4468, allocations: 4 kB / 0.5222 GB, free: 13.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4468, allocations: 3.938 kB / 0.5222 GB, free: 13.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004863/0.4473, allocations: 0 / 0.5222 GB, free: 13.74 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.03466/0.482, allocations: 11.97 MB / 0.5339 GB, free: 1.676 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.482, allocations: 12.03 kB / 0.5339 GB, free: 1.664 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004837/0.4869, allocations: 1.539 MB / 0.5354 GB, free: 116 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3875/0.8743, allocations: 5.677 MB / 0.541 GB, free: 98.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01206/0.8864, allocations: 6.364 MB / 0.5472 GB, free: 94.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.8868, allocations: 0.7058 MB / 0.5479 GB, free: 93.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002175/0.8889, allocations: 0.9331 MB / 0.5488 GB, free: 93.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0245/0.9135, allocations: 15.23 MB / 0.5637 GB, free: 77.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002265/0.9137, allocations: 7.953 kB / 0.5637 GB, free: 77.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001051/0.9147, allocations: 396.1 kB / 0.5641 GB, free: 77.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003307/0.9151, allocations: 0.5233 MB / 0.5646 GB, free: 76.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0211/0.9362, allocations: 13.69 MB / 0.5779 GB, free: 63.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05967/0.9958, allocations: 42.68 MB / 0.6196 GB, free: 20.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/1.008, allocations: 7.949 MB / 0.6274 GB, free: 13.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003544/1.011, allocations: 2.79 MB / 0.6301 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/1.012, allocations: 74.91 kB / 0.6302 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/1.012, allocations: 85.45 kB / 0.6303 GB, free: 10.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 6.783e-06/1.012, allocations: 5.312 kB / 0.6303 GB, free: 10.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02696/1.039, allocations: 14.65 MB / 0.6446 GB, free: 11.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/1.039, allocations: 94.42 kB / 0.6447 GB, free: 11.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006313/1.045, allocations: 3.726 MB / 0.6483 GB, free: 8.031 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003941/1.045, allocations: 93.7 kB / 0.6484 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003542/1.049, allocations: 4.196 MB / 0.6525 GB, free: 3.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/1.051, allocations: 1.41 MB / 0.6539 GB, free: 2.309 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002293/1.053, allocations: 1.16 MB / 0.655 GB, free: 1.137 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/1.053, allocations: 305.1 kB / 0.6553 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004546/1.058, allocations: 2.592 MB / 0.6578 GB, free: 14.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006642/1.064, allocations: 5.108 MB / 0.6628 GB, free: 7.945 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.076, allocations: 8.333 MB / 0.671 GB, free: 14.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.504e-05/1.076, allocations: 24 kB / 0.671 GB, free: 14.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01716/1.093, allocations: 8.626 MB / 0.6794 GB, free: 5.746 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.094, allocations: 40 kB / 0.6794 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/1.094, allocations: 84 kB / 0.6795 GB, free: 5.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/1.096, allocations: 0.8305 MB / 0.6803 GB, free: 4.793 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005136/1.101, allocations: 1.369 MB / 0.6817 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/1.113, allocations: 7.387 MB / 0.6889 GB, free: 11.91 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003834/1.117, allocations: 327.5 kB / 0.6892 GB, free: 11.59 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007682/1.118, allocations: 312 kB / 0.6895 GB, free: 11.29 MB / 0.4982 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.005932/1.124, allocations: 3.509 MB / 0.6929 GB, free: 7.762 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.125, allocations: 433.2 kB / 0.6933 GB, free: 7.336 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/1.136, allocations: 5.949 MB / 0.6991 GB, free: 1.348 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.614e-05/1.136, allocations: 40 kB / 0.6992 GB, free: 1.309 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/1.136, allocations: 8 kB / 0.6992 GB, free: 1.301 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.46e-05/1.136, allocations: 19.92 kB / 0.6992 GB, free: 1.281 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02939/1.166, allocations: 14.32 MB / 0.7132 GB, free: 2.809 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/1.166, allocations: 4 kB / 0.7132 GB, free: 2.805 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/1.169, allocations: 0.6865 MB / 0.7139 GB, free: 2.117 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/1.171, allocations: 0.6974 MB / 0.7145 GB, free: 1.418 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003715/1.171, allocations: 87.97 kB / 0.7146 GB, free: 1.332 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01068/1.182, allocations: 6.419 MB / 0.7209 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.182, allocations: 7.938 kB / 0.7209 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01669/1.198, allocations: 8.741 MB / 0.7294 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00283/1.201, allocations: 0.8446 MB / 0.7303 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008946/1.202, allocations: 79.88 kB / 0.7303 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002378/1.205, allocations: 187.8 kB / 0.7305 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006302/1.205, allocations: 282.5 kB / 0.7308 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003064/1.205, allocations: 116 kB / 0.7309 GB, free: 432 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004837/1.21, allocations: 2.404 MB / 0.7333 GB, free: 14.03 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.21, allocations: 4.062 kB / 0.7333 GB, free: 14.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005848/1.216, allocations: 1.539 MB / 0.7348 GB, free: 12.48 MB / 0.545 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.01538/1.232, allocations: 9.45 MB / 0.744 GB, free: 2.898 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.1992/1.431, allocations: 6.251 MB / 0.7501 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.431, allocations: 3.016 kB / 0.7501 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004038/1.435, allocations: 2.718 MB / 0.7527 GB, free: 198.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/1.439, allocations: 0.9505 MB / 0.7537 GB, free: 198.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06167/1.501, allocations: 52.65 MB / 0.8051 GB, free: 151.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004831/1.505, allocations: 5.517 MB / 0.8105 GB, free: 145.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004089/1.509, allocations: 1.885 MB / 0.8123 GB, free: 143.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003414/1.513, allocations: 3.209 MB / 0.8154 GB, free: 140.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/1.513, allocations: 0 / 0.8154 GB, free: 140.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1584/1.671, allocations: 122.6 MB / 0.9351 GB, free: 18.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.23/18.9, allocations: 8.047 kB / 0.9352 GB, free: 18.94 MB / 0.545 GB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv. Warning: Get data of variable quadraticSpeedDependentTorqueQS.phi from file Modelica_4.0.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.66969329211861]