Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.00128/0.00128, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002038/0.002038, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.427/1.427, allocations: 230.5 MB / 257.4 MB, free: 7.742 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002839/0.002839, allocations: 63.91 kB / 377.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2642, allocations: 53.41 MB / 431.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01179/0.276, allocations: 9.147 MB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006742/0.2827, allocations: 3.291 MB / 443.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.2847, allocations: 75.44 kB / 443.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002417/0.2871, allocations: 0.757 MB / 444.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003294/0.2904, allocations: 0.8854 MB / 445.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2917, allocations: 431.3 kB / 445.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.2954, allocations: 2.762 MB / 448.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002316/0.2977, allocations: 1.305 MB / 449.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.2997, allocations: 1.3 MB / 451.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002677/0.3024, allocations: 1.521 MB / 452.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008553/0.3032, allocations: 336 kB / 453 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.3046, allocations: 435.8 kB / 453.4 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.306, allocations: 0.9505 MB / 454.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.308, allocations: 1.221 MB / 455.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004914/0.3129, allocations: 4.433 MB / 460 MB, free: 9.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3129, allocations: 0 / 460 MB, free: 9.406 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3129, allocations: 0 / 460 MB, free: 9.406 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.589e-05/0.313, allocations: 0 / 460 MB, free: 9.406 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006203/0.3192, allocations: 3.069 MB / 463.1 MB, free: 6.289 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3192, allocations: 15.98 kB / 463.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004249/0.3197, allocations: 321 kB / 463.4 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00083/0.3205, allocations: 327 kB / 463.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003192/0.3237, allocations: 1.566 MB / 465.3 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.3238, allocations: 168.4 kB / 465.4 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003581/0.3242, allocations: 220 kB / 465.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004964/0.3292, allocations: 3.025 MB / 468.7 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-05/0.3292, allocations: 4 kB / 468.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.3294, allocations: 87.98 kB / 468.8 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/0.3296, allocations: 120.3 kB / 468.9 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004452/0.334, allocations: 2.422 MB / 471.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.3482, allocations: 8.155 MB / 479.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.3504, allocations: 1.194 MB / 480.6 MB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.3522, allocations: 0.9131 MB / 481.6 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002264/0.3524, allocations: 52.97 kB / 481.6 MB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.3525, allocations: 43.56 kB / 481.7 MB, free: 3.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.086e-06/0.3525, allocations: 0 / 481.7 MB, free: 3.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01474/0.3672, allocations: 6.07 MB / 487.7 MB, free: 13.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.3673, allocations: 64.41 kB / 487.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002317/0.3696, allocations: 1.597 MB / 489.4 MB, free: 11.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.3697, allocations: 49.64 kB / 489.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008716/0.3706, allocations: 1.134 MB / 490.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004025/0.371, allocations: 452.2 kB / 491 MB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004323/0.3714, allocations: 275.4 kB / 491.3 MB, free: 9.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3716, allocations: 305.1 kB / 491.6 MB, free: 9.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.3728, allocations: 0.7105 MB / 492.3 MB, free: 8.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.3743, allocations: 1.146 MB / 493.4 MB, free: 7.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.3773, allocations: 1.967 MB / 495.4 MB, free: 5.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.3773, allocations: 4 kB / 495.4 MB, free: 5.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004462/0.3817, allocations: 2.444 MB / 497.8 MB, free: 2.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.3818, allocations: 15.94 kB / 497.9 MB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.3818, allocations: 12 kB / 497.9 MB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009926/0.3828, allocations: 423.1 kB / 498.3 MB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.3841, allocations: 351.4 kB / 498.6 MB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007669/0.3917, allocations: 6.766 MB / 0.4936 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3932, allocations: 115.8 kB / 0.4937 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.3933, allocations: 60 kB / 0.4937 GB, free: 10.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001251/0.3945, allocations: 0.7202 MB / 0.4944 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003637/0.3949, allocations: 174.9 kB / 0.4946 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.3989, allocations: 2.115 MB / 0.4967 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.3989, allocations: 16 kB / 0.4967 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.3989, allocations: 4 kB / 0.4967 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3989, allocations: 7.922 kB / 0.4967 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008738/0.4077, allocations: 4.411 MB / 0.501 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.4077, allocations: 12.02 kB / 0.501 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000967/0.4086, allocations: 223.7 kB / 0.5012 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/0.4099, allocations: 451 kB / 0.5016 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.41, allocations: 31.98 kB / 0.5017 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008613/0.4186, allocations: 8.227 MB / 0.5097 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.4186, allocations: 4 kB / 0.5097 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00535/0.4239, allocations: 3.14 MB / 0.5128 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.425, allocations: 330.7 kB / 0.5131 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/0.4252, allocations: 28 kB / 0.5131 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009091/0.4261, allocations: 91.89 kB / 0.5132 GB, free: 5.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.4264, allocations: 100.7 kB / 0.5133 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/0.4264, allocations: 39.98 kB / 0.5133 GB, free: 5.672 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001634/0.4281, allocations: 1.071 MB / 0.5144 GB, free: 4.605 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4281, allocations: 0 / 0.5144 GB, free: 4.605 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001664/0.4297, allocations: 491.9 kB / 0.5149 GB, free: 4.125 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005874/0.4356, allocations: 3.785 MB / 0.5186 GB, free: 260 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003898/0.4395, allocations: 2.147 MB / 0.5206 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.4395, allocations: 4 kB / 0.5207 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.442, allocations: 1.427 MB / 0.522 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.4442, allocations: 481.9 kB / 0.5225 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2033/0.6475, allocations: 17.77 MB / 0.5399 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001261/0.6488, allocations: 1.302 MB / 0.5411 GB, free: 99.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.6498, allocations: 397.8 kB / 0.5415 GB, free: 99.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008704/0.6507, allocations: 0.8733 MB / 0.5424 GB, free: 98.99 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6507, allocations: 0 / 0.5424 GB, free: 98.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08066/0.7314, allocations: 48.59 MB / 0.5898 GB, free: 55.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.87, allocations: 0 / 0.5898 GB, free: 55.04 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.713650063611567]