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.001357/0.001357, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001393/0.001393, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.392/1.392, allocations: 225.6 MB / 253.3 MB, free: 13.04 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 47.92 kB / 371.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2584, allocations: 52.19 MB / 423.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03573/0.2942, allocations: 28.77 MB / 452.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02004/0.3142, allocations: 8.419 MB / 460.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0057/0.3199, allocations: 250.8 kB / 460.9 MB, free: 9.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01956/0.3395, allocations: 8.308 MB / 469.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009765/0.3492, allocations: 2.922 MB / 472.1 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00556/0.3548, allocations: 1.897 MB / 474 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0143/0.3691, allocations: 10.06 MB / 484.1 MB, free: 1.789 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02542/0.3945, allocations: 14.04 MB / 498.1 MB, free: 3.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00971/0.4042, allocations: 5.49 MB / 0.4918 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01139/0.4156, allocations: 6.113 MB / 0.4978 GB, free: 7.977 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004913/0.4205, allocations: 1.543 MB / 0.4993 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006754/0.4273, allocations: 1.898 MB / 0.5011 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005561/0.4328, allocations: 2.993 MB / 0.5041 GB, free: 1.535 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01211/0.4449, allocations: 5.852 MB / 0.5098 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03144/0.4764, allocations: 20.66 MB / 0.5299 GB, free: 6.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.4764, allocations: 4 kB / 0.53 GB, free: 6.926 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4764, allocations: 0 / 0.53 GB, free: 6.926 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006663/0.477, allocations: 0 / 0.53 GB, free: 6.926 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.2531/0.7301, allocations: 11.98 MB / 0.5416 GB, free: 94.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.7302, allocations: 10.44 kB / 0.5417 GB, free: 94.4 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003614/0.7305, allocations: 293.3 kB / 0.5419 GB, free: 94.35 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00482/0.7354, allocations: 1.546 MB / 0.5434 GB, free: 93.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02851/0.7639, allocations: 5.674 MB / 0.549 GB, free: 91.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.7765, allocations: 6.375 MB / 0.5552 GB, free: 87.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006844/0.7772, allocations: 0.7108 MB / 0.5559 GB, free: 87.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003462/0.7807, allocations: 0.9332 MB / 0.5568 GB, free: 86.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03156/0.8122, allocations: 15.1 MB / 0.5716 GB, free: 70.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005627/0.8128, allocations: 19.91 kB / 0.5716 GB, free: 70.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00294/0.8157, allocations: 391.6 kB / 0.572 GB, free: 70.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004253/0.8162, allocations: 0.5195 MB / 0.5725 GB, free: 70.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.8422, allocations: 13.77 MB / 0.5859 GB, free: 56.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07112/0.9133, allocations: 46.57 MB / 0.6314 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/0.9254, allocations: 8.067 MB / 0.6393 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004293/0.9297, allocations: 2.839 MB / 0.642 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004234/0.9301, allocations: 89.27 kB / 0.6421 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.181e-05/0.9302, allocations: 69.66 kB / 0.6422 GB, free: 15.46 MB / 462.1 MB Notification: Performance of pre-optimization done (n=394): time 6.663e-06/0.9302, allocations: 0 / 0.6422 GB, free: 15.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=477): time 0.06556/0.9957, allocations: 25.3 MB / 0.6669 GB, free: 6.234 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.9958, allocations: 107.1 kB / 0.667 GB, free: 6.117 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007126/1.003, allocations: 3.607 MB / 0.6705 GB, free: 2.516 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006881/1.004, allocations: 101.7 kB / 0.6706 GB, free: 2.41 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003589/1.007, allocations: 4.189 MB / 0.6747 GB, free: 14.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002285/1.01, allocations: 1.693 MB / 0.6764 GB, free: 12.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003072/1.013, allocations: 1.287 MB / 0.6776 GB, free: 11.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.013, allocations: 305.1 kB / 0.6779 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005278/1.018, allocations: 3.066 MB / 0.6809 GB, free: 7.805 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007565/1.026, allocations: 5.603 MB / 0.6864 GB, free: 1.035 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01418/1.04, allocations: 9.436 MB / 0.6956 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-05/1.04, allocations: 24 kB / 0.6956 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02117/1.061, allocations: 10.41 MB / 0.7058 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/1.061, allocations: 44.88 kB / 0.7058 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/1.061, allocations: 80 kB / 0.7059 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004794/1.066, allocations: 1.676 MB / 0.7075 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005379/1.071, allocations: 1.439 MB / 0.7089 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02411/1.095, allocations: 15.81 MB / 0.7244 GB, free: 8.668 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005479/1.101, allocations: 351.5 kB / 0.7247 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009185/1.102, allocations: 335.9 kB / 0.725 GB, free: 7.996 MB / 0.5294 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 (760): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,40,65.6%), (8,40,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006444/1.108, allocations: 3.595 MB / 0.7285 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/1.109, allocations: 457.1 kB / 0.729 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/1.124, allocations: 7.789 MB / 0.7366 GB, free: 12.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.674e-05/1.124, allocations: 51.94 kB / 0.7366 GB, free: 12.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/1.124, allocations: 12 kB / 0.7366 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.691e-05/1.124, allocations: 23.91 kB / 0.7367 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.43/1.554, allocations: 18.41 MB / 0.7546 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/1.554, allocations: 6.094 kB / 0.7547 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00273/1.557, allocations: 0.7606 MB / 0.7554 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003464/1.56, allocations: 1.458 MB / 0.7568 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003931/1.561, allocations: 101.6 kB / 0.7569 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.575, allocations: 13.89 MB / 0.7705 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.575, allocations: 3.906 kB / 0.7705 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/1.59, allocations: 11.28 MB / 0.7815 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/1.592, allocations: 0.9817 MB / 0.7825 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007883/1.593, allocations: 99.17 kB / 0.7826 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002315/1.595, allocations: 204.4 kB / 0.7827 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007049/1.596, allocations: 350.9 kB / 0.7831 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002794/1.596, allocations: 136.9 kB / 0.7832 GB, free: 169.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00321/1.6, allocations: 2.417 MB / 0.7856 GB, free: 168.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 6e-08/1.6, allocations: 0 / 0.7856 GB, free: 168.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006033/1.606, allocations: 1.733 MB / 0.7873 GB, free: 167.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (418): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,38,59.4%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01436/1.62, allocations: 12.01 MB / 0.799 GB, free: 157 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01139/1.631, allocations: 7.914 MB / 0.8067 GB, free: 149.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/1.631, allocations: 4 kB / 0.8067 GB, free: 149.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005576/1.637, allocations: 3.785 MB / 0.8104 GB, free: 145.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00535/1.642, allocations: 0.9994 MB / 0.8114 GB, free: 144.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07763/1.72, allocations: 58.53 MB / 0.8686 GB, free: 82.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007051/1.727, allocations: 6.148 MB / 0.8746 GB, free: 76.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004557/1.732, allocations: 1.938 MB / 0.8765 GB, free: 74.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004878/1.737, allocations: 3.291 MB / 0.8797 GB, free: 71.52 MB / 0.545 GB Notification: Performance of SimCode: time 1.793e-06/1.737, allocations: 3.938 kB / 0.8797 GB, free: 71.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3954/2.132, allocations: 141 MB / 1.017 GB, free: 159.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/23.89, allocations: 5.812 kB / 1.017 GB, free: 159.9 MB / 0.5607 GB " [Timeout remaining time 636] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.69459366600495]