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.005522/0.005522, allocations: 100.8 kB / 21.96 MB, free: 5.211 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.001576/0.001576, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.282/1.282, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.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.001647/0.001647, allocations: 55.92 kB / 348 MB, free: 9.84 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2524, allocations: 49.15 MB / 397.2 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02678/0.2792, allocations: 25.08 MB / 422.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01938/0.2986, allocations: 8.2 MB / 430.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006907/0.3055, allocations: 216.6 kB / 430.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01869/0.3242, allocations: 7.679 MB / 438.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01146/0.3356, allocations: 3.09 MB / 441.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005745/0.3414, allocations: 1.891 MB / 443.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01433/0.3557, allocations: 10.58 MB / 453.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02249/0.3782, allocations: 14.19 MB / 468.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008821/0.387, allocations: 5.747 MB / 473.8 MB, free: 6.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01071/0.3977, allocations: 6.447 MB / 480.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003969/0.4017, allocations: 1.582 MB / 481.9 MB, free: 14.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005708/0.4074, allocations: 1.937 MB / 483.8 MB, free: 12.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00434/0.4118, allocations: 3.195 MB / 487 MB, free: 8.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009144/0.4209, allocations: 4.767 MB / 491.8 MB, free: 4.133 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02527/0.4462, allocations: 21.35 MB / 0.5011 GB, free: 14.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4462, allocations: 0 / 0.5011 GB, free: 14.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4462, allocations: 3.938 kB / 0.5011 GB, free: 14.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005429/0.4467, allocations: 4 kB / 0.5011 GB, free: 14.71 MB / 430.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.03581/0.4825, allocations: 12.59 MB / 0.5134 GB, free: 2.023 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.4826, allocations: 15.92 kB / 0.5134 GB, free: 2.008 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003517/0.4829, allocations: 303.1 kB / 0.5137 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005088/0.488, allocations: 1.658 MB / 0.5153 GB, free: 36 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04608/0.5341, allocations: 8.647 MB / 0.5238 GB, free: 7.371 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01371/0.5478, allocations: 5.974 MB / 0.5296 GB, free: 1.328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007766/0.5486, allocations: 0.7426 MB / 0.5303 GB, free: 0.582 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004065/0.5526, allocations: 0.9881 MB / 0.5313 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04172/0.5944, allocations: 16.74 MB / 0.5476 GB, free: 14.72 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003752/0.5947, allocations: 23.89 kB / 0.5477 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003238/0.598, allocations: 419.9 kB / 0.5481 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006781/0.5986, allocations: 0.6068 MB / 0.5487 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3713/0.97, allocations: 15.99 MB / 0.5643 GB, free: 130.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07107/1.041, allocations: 45.85 MB / 0.609 GB, free: 103 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/1.057, allocations: 12.14 MB / 0.6209 GB, free: 96.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004035/1.061, allocations: 3.18 MB / 0.624 GB, free: 93.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01259/1.073, allocations: 8.467 MB / 0.6323 GB, free: 85.26 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/1.073, allocations: 68.42 kB / 0.6323 GB, free: 85.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 5.33e-06/1.073, allocations: 0 / 0.6323 GB, free: 85.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=361): time 0.0439/1.117, allocations: 22.76 MB / 0.6546 GB, free: 62.81 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/1.117, allocations: 86.25 kB / 0.6547 GB, free: 62.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/1.122, allocations: 4.077 MB / 0.6586 GB, free: 58.62 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000305/1.122, allocations: 81.7 kB / 0.6587 GB, free: 58.53 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001758/1.124, allocations: 4.81 MB / 0.6634 GB, free: 53.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007795/1.125, allocations: 1.325 MB / 0.6647 GB, free: 52.34 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/1.126, allocations: 1.35 MB / 0.666 GB, free: 50.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.535e-05/1.126, allocations: 305.1 kB / 0.6663 GB, free: 50.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003204/1.129, allocations: 2.918 MB / 0.6692 GB, free: 47.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004294/1.134, allocations: 6.144 MB / 0.6752 GB, free: 40.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008998/1.143, allocations: 9.77 MB / 0.6847 GB, free: 28.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/1.143, allocations: 32 kB / 0.6847 GB, free: 28.72 MB / 478.1 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.01483/1.158, allocations: 10.5 MB / 0.695 GB, free: 18.18 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/1.158, allocations: 55.94 kB / 0.695 GB, free: 18.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/1.158, allocations: 108 kB / 0.6951 GB, free: 18.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003934/1.162, allocations: 1.664 MB / 0.6968 GB, free: 16.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/1.166, allocations: 1.478 MB / 0.6982 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01723/1.183, allocations: 15.28 MB / 0.7131 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004967/1.188, allocations: 379.5 kB / 0.7135 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009636/1.189, allocations: 379.9 kB / 0.7139 GB, free: 14.59 MB / 494.1 MB 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.006576/1.196, allocations: 3.758 MB / 0.7175 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/1.197, allocations: 461 kB / 0.718 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/1.209, allocations: 6.857 MB / 0.7247 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/1.209, allocations: 40 kB / 0.7247 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.151e-05/1.209, allocations: 15.94 kB / 0.7247 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.002e-05/1.209, allocations: 15.94 kB / 0.7247 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02519/1.235, allocations: 14.17 MB / 0.7386 GB, free: 5.059 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.779e-05/1.235, allocations: 8.594 kB / 0.7386 GB, free: 5.051 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/1.237, allocations: 0.5929 MB / 0.7392 GB, free: 4.457 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004171/1.241, allocations: 1.449 MB / 0.7406 GB, free: 3 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003973/1.242, allocations: 79.98 kB / 0.7407 GB, free: 2.922 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01949/1.261, allocations: 13.62 MB / 0.7539 GB, free: 5.059 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/1.261, allocations: 7.938 kB / 0.754 GB, free: 5.051 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2268/1.488, allocations: 9.819 MB / 0.7635 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002711/1.491, allocations: 0.8951 MB / 0.7644 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008932/1.492, allocations: 70.66 kB / 0.7645 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.494, allocations: 193.4 kB / 0.7647 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006752/1.494, allocations: 278.4 kB / 0.7649 GB, free: 164.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002596/1.495, allocations: 110.4 kB / 0.765 GB, free: 164.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004498/1.499, allocations: 2.677 MB / 0.7677 GB, free: 163.7 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.21e-07/1.499, allocations: 0 / 0.7677 GB, free: 163.7 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007329/1.507, allocations: 1.731 MB / 0.7693 GB, free: 163.6 MB / 0.5138 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.01574/1.522, allocations: 10.53 MB / 0.7796 GB, free: 158.8 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01103/1.533, allocations: 7.504 MB / 0.787 GB, free: 155.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/1.533, allocations: 2.781 kB / 0.787 GB, free: 155.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00503/1.538, allocations: 3.354 MB / 0.7902 GB, free: 154.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00442/1.543, allocations: 0.9715 MB / 0.7912 GB, free: 154.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07877/1.622, allocations: 60.8 MB / 0.8506 GB, free: 95.98 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00663/1.628, allocations: 5.928 MB / 0.8564 GB, free: 90.01 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004657/1.633, allocations: 2.013 MB / 0.8583 GB, free: 87.99 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004316/1.637, allocations: 3.522 MB / 0.8618 GB, free: 84.46 MB / 0.5138 GB Notification: Performance of SimCode: time 9.81e-07/1.637, allocations: 0 / 0.8618 GB, free: 84.46 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3977/2.035, allocations: 138 MB / 0.9965 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.69/23.73, allocations: 1.406 kB / 0.9965 GB, free: 161.2 MB / 0.5294 GB " [Timeout remaining time 636] (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: 27.57051391294226]