Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001723/0.001723, allocations: 117.5 kB / 19.17 MB, free: 3.922 MB / 14.72 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.002116/0.002116, allocations: 203.9 kB / 22.12 MB, free: 0.9805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 207.6 MB / 232.5 MB, free: 3.965 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 54.73 kB / 343 MB, free: 9.977 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.085/0.08666, allocations: 49.12 MB / 392.2 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03225/0.1189, allocations: 29.35 MB / 421.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01759/0.1365, allocations: 8.553 MB / 430.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00499/0.1415, allocations: 218.9 kB / 430.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01914/0.1606, allocations: 8.308 MB / 438.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.1711, allocations: 3.07 MB / 441.6 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005763/0.1768, allocations: 1.925 MB / 443.6 MB, free: 5.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01415/0.191, allocations: 10.5 MB / 454.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2069/0.3979, allocations: 16.41 MB / 470.5 MB, free: 8.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00839/0.4063, allocations: 5.721 MB / 476.2 MB, free: 7.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01086/0.4172, allocations: 6.429 MB / 482.6 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00415/0.4213, allocations: 1.58 MB / 484.2 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005902/0.4272, allocations: 1.936 MB / 486.1 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00365/0.4309, allocations: 3.2 MB / 489.3 MB, free: 6.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0078/0.4387, allocations: 6.123 MB / 495.5 MB, free: 5.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01993/0.4586, allocations: 21.24 MB / 0.5046 GB, free: 8.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.4586, allocations: 0 / 0.5046 GB, free: 8.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4586, allocations: 4 kB / 0.5046 GB, free: 8.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006719/0.4593, allocations: 0 / 0.5046 GB, free: 8.746 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03592/0.4952, allocations: 12.68 MB / 0.517 GB, free: 12.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.4953, allocations: 15.89 kB / 0.517 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003339/0.4956, allocations: 307 kB / 0.5173 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004822/0.5004, allocations: 1.64 MB / 0.5189 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04677/0.5472, allocations: 8.654 MB / 0.5273 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.5605, allocations: 5.919 MB / 0.5331 GB, free: 12.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008777/0.5614, allocations: 0.7431 MB / 0.5339 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004162/0.5656, allocations: 0.9832 MB / 0.5348 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03758/0.6031, allocations: 16.59 MB / 0.551 GB, free: 9.723 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002728/0.6034, allocations: 22.98 kB / 0.551 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00216/0.6056, allocations: 413.1 kB / 0.5514 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006484/0.6062, allocations: 0.6107 MB / 0.552 GB, free: 8.699 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03352/0.6398, allocations: 15.99 MB / 0.5676 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08532/0.7251, allocations: 51.79 MB / 0.6182 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2114/0.9365, allocations: 51.85 MB / 0.6688 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005885/0.9424, allocations: 3.186 MB / 0.672 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/0.9575, allocations: 9.474 MB / 0.6812 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.9576, allocations: 66.64 kB / 0.6813 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=280): time 4.388e-06/0.9576, allocations: 0 / 0.6813 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=361): time 0.04456/1.002, allocations: 22.99 MB / 0.7037 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/1.002, allocations: 87.19 kB / 0.7038 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004926/1.007, allocations: 4.074 MB / 0.7078 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000468/1.008, allocations: 85.45 kB / 0.7079 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001895/1.009, allocations: 4.801 MB / 0.7126 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009124/1.01, allocations: 1.326 MB / 0.7139 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/1.012, allocations: 1.349 MB / 0.7152 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.184e-05/1.012, allocations: 301.1 kB / 0.7155 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003419/1.015, allocations: 2.925 MB / 0.7183 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004419/1.02, allocations: 6.116 MB / 0.7243 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008818/1.029, allocations: 9.772 MB / 0.7338 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.989e-05/1.029, allocations: 32 kB / 0.7339 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=861) (initialization): time 0.01458/1.043, allocations: 10.51 MB / 0.7441 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/1.043, allocations: 52 kB / 0.7442 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/1.043, allocations: 111.9 kB / 0.7443 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004029/1.048, allocations: 1.667 MB / 0.7459 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00439/1.052, allocations: 1.474 MB / 0.7474 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01733/1.069, allocations: 15.73 MB / 0.7627 GB, free: 99.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/1.074, allocations: 383.4 kB / 0.7631 GB, free: 98.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009783/1.075, allocations: 375.9 kB / 0.7634 GB, free: 98.49 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (771): * Single equations (assignments): 769 * 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,65.6%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005637/1.081, allocations: 3.758 MB / 0.7671 GB, free: 94.72 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001301/1.082, allocations: 458.6 kB / 0.7675 GB, free: 94.27 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/1.093, allocations: 6.852 MB / 0.7742 GB, free: 87.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/1.093, allocations: 40 kB / 0.7743 GB, free: 87.35 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.378e-05/1.093, allocations: 16 kB / 0.7743 GB, free: 87.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-05/1.094, allocations: 15.94 kB / 0.7743 GB, free: 87.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/1.117, allocations: 14.81 MB / 0.7888 GB, free: 72.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/1.117, allocations: 4 kB / 0.7888 GB, free: 72.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/1.119, allocations: 0.5889 MB / 0.7893 GB, free: 71.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003868/1.123, allocations: 1.453 MB / 0.7908 GB, free: 70.37 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004098/1.124, allocations: 79.98 kB / 0.7908 GB, free: 70.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/1.139, allocations: 14.08 MB / 0.8046 GB, free: 55.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.139, allocations: 4 kB / 0.8046 GB, free: 55.95 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.153, allocations: 9.821 MB / 0.8142 GB, free: 45.99 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001946/1.155, allocations: 0.951 MB / 0.8151 GB, free: 45.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009854/1.156, allocations: 72 kB / 0.8152 GB, free: 44.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002464/1.158, allocations: 187.8 kB / 0.8154 GB, free: 44.76 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006577/1.159, allocations: 270.4 kB / 0.8156 GB, free: 44.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/1.159, allocations: 112 kB / 0.8157 GB, free: 44.39 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004125/1.163, allocations: 2.672 MB / 0.8183 GB, free: 41.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.163, allocations: 0 / 0.8183 GB, free: 41.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00635/1.169, allocations: 1.73 MB / 0.82 GB, free: 39.97 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (302): * Single equations (assignments): 300 * 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,65.6%), (8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01338/1.183, allocations: 10.53 MB / 0.8303 GB, free: 29.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.194, allocations: 7.516 MB / 0.8377 GB, free: 21.77 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.194, allocations: 4 kB / 0.8377 GB, free: 21.77 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005663/1.2, allocations: 3.357 MB / 0.8409 GB, free: 18.39 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005508/1.206, allocations: 0.9804 MB / 0.8419 GB, free: 17.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2919/1.498, allocations: 60.67 MB / 0.9011 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0123/1.51, allocations: 6.365 MB / 0.9074 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005555/1.515, allocations: 2.008 MB / 0.9093 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005956/1.521, allocations: 3.518 MB / 0.9127 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.683e-06/1.521, allocations: 0 / 0.9127 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1741/1.695, allocations: 132.7 MB / 1.042 GB, free: 24.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19/20.7, allocations: 15.75 kB / 1.042 GB, free: 24.89 MB / 0.5294 GB " [Timeout remaining time 639] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 25.00334523397032]