Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 118.6 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 214.6 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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.00183/0.00183, allocations: 59.89 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09484, allocations: 53.32 MB / 426.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2069/0.3018, allocations: 28.74 MB / 455.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.3226, allocations: 8.51 MB / 463.9 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007643/0.3302, allocations: 212.9 kB / 464.2 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02122/0.3514, allocations: 8.28 MB / 472.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.3628, allocations: 2.848 MB / 475.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006748/0.3696, allocations: 1.888 MB / 477.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01543/0.385, allocations: 10.02 MB / 487.2 MB, free: 4.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02921/0.4142, allocations: 16.33 MB / 0.4917 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01055/0.4247, allocations: 5.384 MB / 0.497 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01131/0.4361, allocations: 6.12 MB / 0.503 GB, free: 8.816 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004718/0.4408, allocations: 1.543 MB / 0.5045 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006992/0.4478, allocations: 1.925 MB / 0.5063 GB, free: 5.348 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00505/0.4528, allocations: 2.996 MB / 0.5093 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01106/0.4639, allocations: 5.848 MB / 0.515 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0267/0.4906, allocations: 20.69 MB / 0.5352 GB, free: 7.715 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4906, allocations: 4 kB / 0.5352 GB, free: 7.711 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4906, allocations: 0 / 0.5352 GB, free: 7.711 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005145/0.4911, allocations: 3.938 kB / 0.5352 GB, free: 7.707 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.03354/0.5246, allocations: 12.09 MB / 0.547 GB, free: 11.51 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.5247, allocations: 8.031 kB / 0.547 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004514/0.5292, allocations: 1.543 MB / 0.5485 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03041/0.5596, allocations: 5.601 MB / 0.554 GB, free: 4.332 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.5748, allocations: 6.33 MB / 0.5602 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008685/0.5757, allocations: 0.7103 MB / 0.5609 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003953/0.5797, allocations: 0.9218 MB / 0.5618 GB, free: 12.31 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03614/0.6158, allocations: 15.11 MB / 0.5765 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000327/0.6161, allocations: 19.94 kB / 0.5765 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002425/0.6186, allocations: 388 kB / 0.5769 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006325/0.6192, allocations: 0.5156 MB / 0.5774 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03134/0.6505, allocations: 13.79 MB / 0.5909 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4635/1.114, allocations: 47.7 MB / 0.6375 GB, free: 127.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.134, allocations: 28.23 MB / 0.665 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004904/1.138, allocations: 2.803 MB / 0.6678 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005403/1.139, allocations: 343.4 kB / 0.6681 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.7e-05/1.139, allocations: 73.52 kB / 0.6682 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 8.336e-06/1.139, allocations: 0 / 0.6682 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.04287/1.182, allocations: 14.91 MB / 0.6827 GB, free: 97.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/1.182, allocations: 90.02 kB / 0.6828 GB, free: 97.03 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007282/1.189, allocations: 3.61 MB / 0.6863 GB, free: 95.73 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006914/1.19, allocations: 92.92 kB / 0.6864 GB, free: 95.65 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00274/1.193, allocations: 4.197 MB / 0.6905 GB, free: 92.99 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/1.194, allocations: 1.408 MB / 0.6919 GB, free: 91.91 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002262/1.197, allocations: 1.177 MB / 0.693 GB, free: 91.33 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.091e-05/1.197, allocations: 304.9 kB / 0.6933 GB, free: 91.03 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004086/1.201, allocations: 2.591 MB / 0.6959 GB, free: 90.07 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006302/1.207, allocations: 5.089 MB / 0.7008 GB, free: 85.36 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.22, allocations: 8.352 MB / 0.709 GB, free: 78.69 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.933e-05/1.22, allocations: 22.31 kB / 0.709 GB, free: 78.69 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01928/1.239, allocations: 8.66 MB / 0.7175 GB, free: 74.08 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.244e-05/1.239, allocations: 40 kB / 0.7175 GB, free: 74.04 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001315/1.24, allocations: 84 kB / 0.7176 GB, free: 73.96 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002993/1.243, allocations: 0.8498 MB / 0.7184 GB, free: 73.11 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006259/1.249, allocations: 1.373 MB / 0.7198 GB, free: 71.73 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01367/1.262, allocations: 7.678 MB / 0.7273 GB, free: 63.91 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/1.269, allocations: 331.5 kB / 0.7276 GB, free: 63.59 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/1.271, allocations: 308 kB / 0.7279 GB, free: 63.29 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.008216/1.279, allocations: 3.516 MB / 0.7313 GB, free: 59.76 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001594/1.28, allocations: 436.4 kB / 0.7317 GB, free: 59.34 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/1.294, allocations: 5.96 MB / 0.7375 GB, free: 53.34 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/1.294, allocations: 43.94 kB / 0.7376 GB, free: 53.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.193e-05/1.294, allocations: 8 kB / 0.7376 GB, free: 53.29 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.816e-05/1.294, allocations: 19.92 kB / 0.7376 GB, free: 53.27 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03317/1.327, allocations: 14.96 MB / 0.7522 GB, free: 38.26 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.952e-05/1.327, allocations: 4 kB / 0.7522 GB, free: 38.25 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/1.33, allocations: 0.6949 MB / 0.7529 GB, free: 37.56 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/1.332, allocations: 0.7132 MB / 0.7536 GB, free: 36.84 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005398/1.332, allocations: 97.38 kB / 0.7537 GB, free: 36.75 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007809/1.34, allocations: 6.714 MB / 0.7602 GB, free: 29.91 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.34, allocations: 4 kB / 0.7602 GB, free: 29.91 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/1.353, allocations: 8.773 MB / 0.7688 GB, free: 21.01 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002777/1.356, allocations: 0.9081 MB / 0.7697 GB, free: 20.08 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001206/1.357, allocations: 75.94 kB / 0.7698 GB, free: 20 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/1.359, allocations: 183.8 kB / 0.7699 GB, free: 19.82 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006377/1.36, allocations: 274.6 kB / 0.7702 GB, free: 19.55 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003619/1.36, allocations: 120 kB / 0.7703 GB, free: 19.44 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004454/1.365, allocations: 2.42 MB / 0.7727 GB, free: 17.03 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/1.365, allocations: 0 / 0.7727 GB, free: 17.03 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007638/1.373, allocations: 1.551 MB / 0.7742 GB, free: 15.48 MB / 0.5138 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.01503/1.388, allocations: 9.493 MB / 0.7835 GB, free: 5.855 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01074/1.398, allocations: 6.28 MB / 0.7896 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.398, allocations: 4 kB / 0.7896 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006008/1.404, allocations: 2.739 MB / 0.7923 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006857/1.411, allocations: 0.9642 MB / 0.7932 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.375/1.786, allocations: 52.58 MB / 0.8446 GB, free: 187.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009925/1.796, allocations: 5.978 MB / 0.8504 GB, free: 185 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005833/1.802, allocations: 1.88 MB / 0.8522 GB, free: 185 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004957/1.807, allocations: 3.236 MB / 0.8554 GB, free: 182.3 MB / 0.5607 GB Notification: Performance of SimCode: time 1.503e-06/1.807, allocations: 0 / 0.8554 GB, free: 182.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2201/2.027, allocations: 121.1 MB / 0.9736 GB, free: 78.31 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.98/22.01, allocations: 15.83 kB / 0.9736 GB, free: 78.3 MB / 0.5607 GB " [Timeout remaining time 638] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.112077591009438]