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.001139/0.001139, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001251/0.001251, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8828/0.8828, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.202e-06/1.202e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78e-05/1.901e-05, allocations: 2.281 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0183/0.01832, allocations: 24.66 MB / 349.3 MB, free: 7.121 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.03194, allocations: 8.174 MB / 357.5 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003998/0.03594, allocations: 254.7 kB / 357.7 MB, free: 14.67 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008469/0.04441, allocations: 8.065 MB / 365.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005011/0.04942, allocations: 2.889 MB / 368.7 MB, free: 3.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002337/0.05176, allocations: 1.871 MB / 370.5 MB, free: 1.816 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007083/0.05884, allocations: 10.43 MB / 380.9 MB, free: 7.352 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01328/0.07212, allocations: 13.91 MB / 394.9 MB, free: 9.309 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008126/0.08025, allocations: 8.132 MB / 403 MB, free: 1.164 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004872/0.08512, allocations: 5.259 MB / 408.2 MB, free: 11.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00161/0.08673, allocations: 1.543 MB / 409.8 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002414/0.08915, allocations: 1.913 MB / 411.7 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001467/0.09061, allocations: 3.047 MB / 414.7 MB, free: 5.383 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003001/0.09361, allocations: 3.914 MB / 418.7 MB, free: 1.461 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.1058, allocations: 20.94 MB / 439.6 MB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1058, allocations: 0 / 439.6 MB, free: 12.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1058, allocations: 0 / 439.6 MB, free: 12.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002345/0.106, allocations: 0 / 439.6 MB, free: 12.46 MB / 410.7 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.01566/0.1217, allocations: 11.92 MB / 451.5 MB, free: 464 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1217, allocations: 12.03 kB / 451.5 MB, free: 452 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.253/0.3746, allocations: 1.531 MB / 453.1 MB, free: 104.4 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01496/0.3896, allocations: 5.612 MB / 458.7 MB, free: 103.5 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007797/0.3974, allocations: 6.383 MB / 465.1 MB, free: 98.47 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.3977, allocations: 0.7095 MB / 465.8 MB, free: 97.77 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001609/0.3993, allocations: 0.9215 MB / 466.7 MB, free: 96.86 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01768/0.417, allocations: 15.26 MB / 482 MB, free: 81.5 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.4171, allocations: 11.95 kB / 482 MB, free: 81.49 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007006/0.4178, allocations: 391.2 kB / 482.3 MB, free: 81.12 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002679/0.4181, allocations: 0.5272 MB / 482.9 MB, free: 80.59 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/0.4348, allocations: 13.72 MB / 496.6 MB, free: 66.84 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0397/0.4745, allocations: 42.76 MB / 0.5267 GB, free: 23.74 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006735/0.4813, allocations: 7.973 MB / 0.5345 GB, free: 17 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.4835, allocations: 2.799 MB / 0.5372 GB, free: 14.2 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.4837, allocations: 90.94 kB / 0.5373 GB, free: 14.11 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.4837, allocations: 73.58 kB / 0.5374 GB, free: 14.03 MB / 410.8 MB Notification: Performance of pre-optimization done (n=384): time 5e-06/0.4837, allocations: 0 / 0.5374 GB, free: 14.03 MB / 410.8 MB Notification: Performance of matching and sorting (n=392): time 0.01599/0.4997, allocations: 14.72 MB / 0.5518 GB, free: 15.45 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.4998, allocations: 98.47 kB / 0.5519 GB, free: 15.34 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.5037, allocations: 3.731 MB / 0.5555 GB, free: 11.61 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.5038, allocations: 89.7 kB / 0.5556 GB, free: 11.52 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001687/0.5055, allocations: 4.175 MB / 0.5597 GB, free: 7.332 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009982/0.5065, allocations: 1.389 MB / 0.561 GB, free: 5.961 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/0.5076, allocations: 1.164 MB / 0.5622 GB, free: 4.785 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 6.504e-05/0.5077, allocations: 305.1 kB / 0.5624 GB, free: 4.484 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/0.5102, allocations: 2.592 MB / 0.565 GB, free: 1.883 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003767/0.5139, allocations: 5.11 MB / 0.57 GB, free: 11.59 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006925/0.5208, allocations: 8.344 MB / 0.5781 GB, free: 2.062 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.356e-05/0.5209, allocations: 24 kB / 0.5781 GB, free: 2.039 MB / 442.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009229/0.5301, allocations: 8.638 MB / 0.5866 GB, free: 9.367 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.934e-05/0.5302, allocations: 44 kB / 0.5866 GB, free: 9.324 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.106e-05/0.5302, allocations: 84 kB / 0.5867 GB, free: 9.242 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.5315, allocations: 0.8355 MB / 0.5875 GB, free: 8.41 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/0.5338, allocations: 1.369 MB / 0.5888 GB, free: 7.039 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00694/0.5408, allocations: 7.396 MB / 0.5961 GB, free: 15.52 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.5429, allocations: 335.4 kB / 0.5964 GB, free: 15.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002964/0.5432, allocations: 308 kB / 0.5967 GB, free: 14.89 MB / 474.8 MB 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.004064/0.5472, allocations: 3.509 MB / 0.6001 GB, free: 11.37 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000775/0.548, allocations: 429.2 kB / 0.6005 GB, free: 10.95 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006241/0.5543, allocations: 5.945 MB / 0.6063 GB, free: 4.969 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.5543, allocations: 40 kB / 0.6064 GB, free: 4.93 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.5543, allocations: 8 kB / 0.6064 GB, free: 4.922 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/0.5543, allocations: 23.86 kB / 0.6064 GB, free: 4.898 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/0.5697, allocations: 14.34 MB / 0.6204 GB, free: 6.516 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.5697, allocations: 4 kB / 0.6204 GB, free: 6.512 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.5711, allocations: 0.6982 MB / 0.6211 GB, free: 5.812 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.5722, allocations: 0.6941 MB / 0.6218 GB, free: 5.117 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/0.5724, allocations: 83.98 kB / 0.6218 GB, free: 5.035 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1526/0.725, allocations: 6.426 MB / 0.6281 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.725, allocations: 6.203 kB / 0.6281 GB, free: 161 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008195/0.7332, allocations: 8.748 MB / 0.6367 GB, free: 158.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.7346, allocations: 0.8571 MB / 0.6375 GB, free: 158.6 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000274/0.7349, allocations: 71.31 kB / 0.6376 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000904/0.7358, allocations: 180 kB / 0.6377 GB, free: 158.5 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.7361, allocations: 289.8 kB / 0.638 GB, free: 158.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.7362, allocations: 116.4 kB / 0.6381 GB, free: 158.4 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002226/0.7385, allocations: 2.407 MB / 0.6405 GB, free: 157.5 MB / 490.8 MB Notification: Performance of sort global known variables: time 1e-07/0.7385, allocations: 3.719 kB / 0.6405 GB, free: 157.5 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.003442/0.7419, allocations: 1.556 MB / 0.642 GB, free: 157.4 MB / 490.8 MB 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.00747/0.7494, allocations: 9.468 MB / 0.6512 GB, free: 153.2 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.00613/0.7555, allocations: 6.251 MB / 0.6574 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.7555, allocations: 8 kB / 0.6574 GB, free: 148 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/0.7579, allocations: 2.73 MB / 0.66 GB, free: 145.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.7605, allocations: 0.9626 MB / 0.661 GB, free: 144.9 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05186/0.8123, allocations: 52.62 MB / 0.7123 GB, free: 91.57 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003341/0.8157, allocations: 5.525 MB / 0.7177 GB, free: 86 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.002858/0.8185, allocations: 1.878 MB / 0.7196 GB, free: 84.11 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002509/0.8211, allocations: 3.234 MB / 0.7227 GB, free: 80.88 MB / 490.8 MB Notification: Performance of SimCode: time 1.843e-06/0.8211, allocations: 2.953 kB / 0.7227 GB, free: 80.88 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2641/1.085, allocations: 123 MB / 0.8428 GB, free: 160.5 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/12.2, allocations: 0 / 0.8428 GB, free: 160.5 MB / 0.4949 GB " [Timeout remaining time 648] (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/jenkins/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/jenkins/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: 13.97046044934541]