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.001246/0.001246, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001367/0.001367, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001536/0.001536, allocations: 47.92 kB / 377.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2487, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03049/0.2791, allocations: 24.63 MB / 455.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01785/0.297, allocations: 8.168 MB / 463.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005834/0.3028, allocations: 258.7 kB / 464.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01979/0.3226, allocations: 7.631 MB / 471.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009668/0.3323, allocations: 2.848 MB / 474.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005167/0.3375, allocations: 1.859 MB / 476.5 MB, free: 9.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.3505, allocations: 10.1 MB / 486.6 MB, free: 14.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02151/0.372, allocations: 14.04 MB / 0.4889 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008617/0.3806, allocations: 5.509 MB / 0.4943 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009982/0.3906, allocations: 6.148 MB / 0.5003 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002692/0.3933, allocations: 1.539 MB / 0.5018 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003887/0.3972, allocations: 1.91 MB / 0.5037 GB, free: 1.621 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002692/0.3999, allocations: 2.993 MB / 0.5066 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009039/0.4089, allocations: 4.545 MB / 0.511 GB, free: 10.06 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0265/0.4354, allocations: 20.78 MB / 0.5313 GB, free: 5.215 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4354, allocations: 0 / 0.5313 GB, free: 5.215 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4354, allocations: 0 / 0.5313 GB, free: 5.215 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005603/0.436, allocations: 3.938 kB / 0.5313 GB, free: 5.211 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.4426/0.8786, allocations: 12 MB / 0.543 GB, free: 91.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.8786, allocations: 7.906 kB / 0.5431 GB, free: 91.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006125/0.8848, allocations: 1.542 MB / 0.5446 GB, free: 90.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03064/0.9154, allocations: 5.599 MB / 0.55 GB, free: 85.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01576/0.9312, allocations: 6.388 MB / 0.5563 GB, free: 79.67 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008799/0.932, allocations: 0.7075 MB / 0.557 GB, free: 78.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004798/0.9368, allocations: 0.9303 MB / 0.5579 GB, free: 78.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03939/0.9762, allocations: 15.26 MB / 0.5728 GB, free: 62.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006108/0.9768, allocations: 15.88 kB / 0.5728 GB, free: 62.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003426/0.9803, allocations: 394 kB / 0.5732 GB, free: 62.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004725/0.9807, allocations: 0.5156 MB / 0.5737 GB, free: 61.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02642/1.007, allocations: 13.72 MB / 0.5871 GB, free: 48.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07616/1.083, allocations: 42.74 MB / 0.6288 GB, free: 4.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01304/1.096, allocations: 7.969 MB / 0.6366 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005385/1.102, allocations: 2.792 MB / 0.6393 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004755/1.102, allocations: 94.94 kB / 0.6394 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.476e-05/1.102, allocations: 69.58 kB / 0.6395 GB, free: 11.22 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 7.765e-06/1.102, allocations: 4 kB / 0.6395 GB, free: 11.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.033/1.135, allocations: 14.72 MB / 0.6538 GB, free: 12.54 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/1.135, allocations: 90.48 kB / 0.6539 GB, free: 12.44 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005726/1.141, allocations: 3.734 MB / 0.6576 GB, free: 8.707 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005832/1.142, allocations: 89.7 kB / 0.6577 GB, free: 8.613 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.145, allocations: 4.192 MB / 0.6618 GB, free: 4.383 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001643/1.146, allocations: 1.41 MB / 0.6631 GB, free: 2.961 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001827/1.148, allocations: 1.176 MB / 0.6643 GB, free: 1.773 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/1.148, allocations: 301.1 kB / 0.6646 GB, free: 1.477 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004183/1.153, allocations: 2.592 MB / 0.6671 GB, free: 14.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006527/1.159, allocations: 5.116 MB / 0.6721 GB, free: 8.582 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.171, allocations: 8.344 MB / 0.6802 GB, free: 15.05 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.339e-05/1.171, allocations: 28 kB / 0.6803 GB, free: 15.02 MB / 0.4982 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01584/1.186, allocations: 8.645 MB / 0.6887 GB, free: 6.348 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.93e-05/1.187, allocations: 40 kB / 0.6888 GB, free: 6.309 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/1.187, allocations: 84 kB / 0.6888 GB, free: 6.227 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/1.189, allocations: 0.8269 MB / 0.6896 GB, free: 5.398 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005069/1.194, allocations: 1.373 MB / 0.691 GB, free: 4.023 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/1.206, allocations: 7.379 MB / 0.6982 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/1.21, allocations: 331.5 kB / 0.6985 GB, free: 12.19 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006221/1.21, allocations: 308.1 kB / 0.6988 GB, free: 11.89 MB / 0.5138 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 (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.005421/1.216, allocations: 3.521 MB / 0.7022 GB, free: 8.352 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009304/1.217, allocations: 425.3 kB / 0.7026 GB, free: 7.934 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.227, allocations: 5.953 MB / 0.7085 GB, free: 1.941 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.474e-05/1.227, allocations: 44 kB / 0.7085 GB, free: 1.898 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.227, allocations: 8 kB / 0.7085 GB, free: 1.891 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.65e-05/1.227, allocations: 19.92 kB / 0.7085 GB, free: 1.871 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02692/1.254, allocations: 14.33 MB / 0.7225 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/1.254, allocations: 8.625 kB / 0.7225 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002984/1.257, allocations: 0.6982 MB / 0.7232 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/1.259, allocations: 0.6897 MB / 0.7239 GB, free: 2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003512/1.26, allocations: 87.97 kB / 0.724 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009651/1.269, allocations: 6.438 MB / 0.7302 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.269, allocations: 4 kB / 0.7302 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/1.283, allocations: 8.757 MB / 0.7388 GB, free: 2.473 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002559/1.286, allocations: 0.8485 MB / 0.7396 GB, free: 1.621 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006863/1.286, allocations: 79.89 kB / 0.7397 GB, free: 1.543 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/1.288, allocations: 187.9 kB / 0.7399 GB, free: 1.359 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000558/1.289, allocations: 286.5 kB / 0.7402 GB, free: 1.078 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/1.289, allocations: 116 kB / 0.7403 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00366/1.293, allocations: 2.408 MB / 0.7426 GB, free: 14.57 MB / 0.5607 GB Notification: Performance of sort global known variables: time 9e-08/1.293, allocations: 0 / 0.7426 GB, free: 14.57 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.004828/1.298, allocations: 1.558 MB / 0.7441 GB, free: 13.01 MB / 0.5607 GB 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.01411/1.312, allocations: 9.475 MB / 0.7534 GB, free: 3.398 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.2053/1.517, allocations: 6.26 MB / 0.7595 GB, free: 206.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.517, allocations: 2.469 kB / 0.7595 GB, free: 206.7 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004513/1.522, allocations: 2.734 MB / 0.7622 GB, free: 206.2 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004321/1.526, allocations: 0.9666 MB / 0.7631 GB, free: 205.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06391/1.59, allocations: 52.58 MB / 0.8145 GB, free: 160.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004963/1.595, allocations: 5.528 MB / 0.8199 GB, free: 155.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004011/1.599, allocations: 1.873 MB / 0.8217 GB, free: 153.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003371/1.602, allocations: 3.233 MB / 0.8249 GB, free: 150.3 MB / 0.5607 GB Notification: Performance of SimCode: time 1.312e-06/1.602, allocations: 4 kB / 0.8249 GB, free: 150.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1588/1.761, allocations: 126.1 MB / 0.948 GB, free: 24.92 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/18.22, allocations: 11.84 kB / 0.948 GB, free: 24.91 MB / 0.5607 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_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_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.mat","/var/lib/jenkins1/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/jenkins1/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.22564667102415]