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.001537/0.001537, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001709/0.001709, allocations: 214.7 kB / 24.47 MB, free: 3.777 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.294/1.294, allocations: 207.7 MB / 235.3 MB, free: 9.793 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="me",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="me",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.001667/0.001667, allocations: 51.92 kB / 347.2 MB, free: 9.84 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2186, allocations: 49.16 MB / 396.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02634/0.245, allocations: 25.1 MB / 421.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.2629, allocations: 8.23 MB / 429.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005997/0.2689, allocations: 218 kB / 429.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01847/0.2874, allocations: 7.668 MB / 437.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01011/0.2975, allocations: 3.058 MB / 440.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006215/0.3037, allocations: 1.895 MB / 442.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.3181, allocations: 10.59 MB / 453.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02339/0.3414, allocations: 14.01 MB / 467.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009202/0.3506, allocations: 5.747 MB / 472.9 MB, free: 6.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01047/0.3611, allocations: 6.178 MB / 479.1 MB, free: 60 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00395/0.3651, allocations: 1.578 MB / 480.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005716/0.3708, allocations: 1.925 MB / 482.6 MB, free: 12.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004442/0.3752, allocations: 3.195 MB / 485.8 MB, free: 9.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00811/0.3833, allocations: 4.766 MB / 490.5 MB, free: 4.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0254/0.4087, allocations: 21.33 MB / 0.4999 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.4087, allocations: 0 / 0.4999 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4087, allocations: 4 kB / 0.4999 GB, free: 15.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004673/0.4092, allocations: 0 / 0.4999 GB, free: 15.16 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.03357/0.4428, allocations: 12.59 MB / 0.5122 GB, free: 2.477 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4428, allocations: 11.98 kB / 0.5122 GB, free: 2.465 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004906/0.4477, allocations: 1.639 MB / 0.5138 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0454/0.4931, allocations: 8.655 MB / 0.5222 GB, free: 8.141 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01429/0.5074, allocations: 5.97 MB / 0.5281 GB, free: 2.102 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007828/0.5082, allocations: 0.7387 MB / 0.5288 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003547/0.5118, allocations: 0.9804 MB / 0.5298 GB, free: 388 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03702/0.5488, allocations: 16.72 MB / 0.5461 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003122/0.5491, allocations: 19.84 kB / 0.5461 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002278/0.5514, allocations: 415.9 kB / 0.5465 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006843/0.5521, allocations: 0.6145 MB / 0.5471 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3291/0.8812, allocations: 15.9 MB / 0.5626 GB, free: 129.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07072/0.9519, allocations: 45.79 MB / 0.6073 GB, free: 102.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01638/0.9683, allocations: 12.1 MB / 0.6192 GB, free: 97.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/0.9722, allocations: 3.143 MB / 0.6222 GB, free: 94.54 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/0.9847, allocations: 8.396 MB / 0.6304 GB, free: 86.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.9848, allocations: 60.69 kB / 0.6305 GB, free: 86.29 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.42e-06/0.9848, allocations: 4 kB / 0.6305 GB, free: 86.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02107/1.006, allocations: 12.83 MB / 0.643 GB, free: 73.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/1.006, allocations: 85.53 kB / 0.6431 GB, free: 73.69 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/1.011, allocations: 4.245 MB / 0.6472 GB, free: 69.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002519/1.011, allocations: 69.7 kB / 0.6473 GB, free: 69.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/1.013, allocations: 4.816 MB / 0.652 GB, free: 64.58 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005987/1.013, allocations: 1.035 MB / 0.653 GB, free: 63.56 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/1.014, allocations: 1.238 MB / 0.6542 GB, free: 62.31 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.472e-05/1.014, allocations: 309.1 kB / 0.6545 GB, free: 62 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002661/1.017, allocations: 2.436 MB / 0.6569 GB, free: 59.56 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003599/1.021, allocations: 5.632 MB / 0.6624 GB, free: 52.39 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006966/1.028, allocations: 8.682 MB / 0.6709 GB, free: 42.13 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.573e-05/1.028, allocations: 32 kB / 0.6709 GB, free: 42.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01097/1.039, allocations: 8.739 MB / 0.6795 GB, free: 33.32 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/1.039, allocations: 52.94 kB / 0.6795 GB, free: 33.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001038/1.039, allocations: 108 kB / 0.6796 GB, free: 33.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/1.041, allocations: 0.8448 MB / 0.6804 GB, free: 32.31 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/1.045, allocations: 1.4 MB / 0.6818 GB, free: 30.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008056/1.053, allocations: 7.273 MB / 0.6889 GB, free: 23.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004229/1.057, allocations: 359.5 kB / 0.6892 GB, free: 23.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008715/1.058, allocations: 348 kB / 0.6896 GB, free: 22.82 MB / 478.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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004849/1.063, allocations: 3.684 MB / 0.6932 GB, free: 19.12 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008593/1.063, allocations: 425.3 kB / 0.6936 GB, free: 18.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00687/1.07, allocations: 5.043 MB / 0.6985 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/1.07, allocations: 28 kB / 0.6985 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/1.07, allocations: 8 kB / 0.6985 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/1.07, allocations: 15.94 kB / 0.6986 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/1.087, allocations: 11.7 MB / 0.71 GB, free: 1.746 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/1.087, allocations: 4 kB / 0.71 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/1.088, allocations: 0.5192 MB / 0.7105 GB, free: 1.223 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/1.09, allocations: 0.6879 MB / 0.7112 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/1.09, allocations: 71.92 kB / 0.7112 GB, free: 472 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009332/1.1, allocations: 6.437 MB / 0.7175 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.1, allocations: 7.984 kB / 0.7175 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/1.111, allocations: 7.329 MB / 0.7247 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00247/1.114, allocations: 0.7587 MB / 0.7254 GB, free: 1.66 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006282/1.115, allocations: 55.92 kB / 0.7255 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/1.116, allocations: 163.8 kB / 0.7256 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004616/1.117, allocations: 217.8 kB / 0.7258 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/1.117, allocations: 87.98 kB / 0.7259 GB, free: 1.141 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004117/1.121, allocations: 2.665 MB / 0.7285 GB, free: 14.46 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1e-07/1.121, allocations: 0 / 0.7285 GB, free: 14.46 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.005362/1.126, allocations: 1.547 MB / 0.73 GB, free: 12.91 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01226/1.139, allocations: 8.003 MB / 0.7379 GB, free: 4.758 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01015/1.149, allocations: 5.871 MB / 0.7436 GB, free: 14.87 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.149, allocations: 0 / 0.7436 GB, free: 14.87 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003964/1.153, allocations: 2.279 MB / 0.7458 GB, free: 12.57 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004206/1.157, allocations: 0.9497 MB / 0.7467 GB, free: 11.62 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2371/1.394, allocations: 54.89 MB / 0.8003 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/1.398, allocations: 5.761 MB / 0.806 GB, free: 143.2 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003822/1.402, allocations: 1.944 MB / 0.8079 GB, free: 141.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002982/1.405, allocations: 3.385 MB / 0.8112 GB, free: 137.9 MB / 0.5138 GB Notification: Performance of SimCode: time 9.22e-07/1.405, allocations: 0 / 0.8112 GB, free: 137.9 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.137/4.543, allocations: 120.1 MB / 0.9284 GB, free: 17.68 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.72/21.26, allocations: 3.906 kB / 0.9284 GB, free: 17.68 MB / 0.5138 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: 24.21901481412351]