Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008209/0.0008209, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000795/0.000795, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8588/0.8588, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.184e-05, allocations: 2.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01512/0.01514, allocations: 18.82 MB / 337.3 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.02634, allocations: 6.141 MB / 343.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003092/0.02943, allocations: 170.9 kB / 343.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.03261, allocations: 1.501 MB / 345.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004726/0.03733, allocations: 2.208 MB / 347.3 MB, free: 9.352 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002131/0.03946, allocations: 1.281 MB / 348.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005728/0.04519, allocations: 6.784 MB / 355.4 MB, free: 1.266 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002999/0.04819, allocations: 3.014 MB / 358.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005039/0.05323, allocations: 4.522 MB / 362.9 MB, free: 9.637 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003109/0.05634, allocations: 3.028 MB / 365.9 MB, free: 6.602 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007324/0.05707, allocations: 0.8125 MB / 366.7 MB, free: 5.789 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.05861, allocations: 1.085 MB / 367.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.06005, allocations: 2.088 MB / 369.9 MB, free: 2.609 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002033/0.06208, allocations: 2.405 MB / 372.3 MB, free: 204 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0081/0.07018, allocations: 10.93 MB / 383.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.07018, allocations: 0 / 383.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.07019, allocations: 0 / 383.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001614/0.07035, allocations: 3.938 kB / 383.2 MB, free: 5.234 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.009669/0.08002, allocations: 6.934 MB / 390.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.08007, allocations: 8.031 kB / 390.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006814/0.08075, allocations: 0.7329 MB / 390.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00279/0.08354, allocations: 1.09 MB / 392 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.08783, allocations: 3.644 MB / 395.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.08805, allocations: 411.1 kB / 396.1 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005227/0.08857, allocations: 0.5276 MB / 396.6 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008424/0.097, allocations: 7.285 MB / 403.9 MB, free: 340 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.345e-05/0.09709, allocations: 15.89 kB / 403.9 MB, free: 324 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003583/0.09745, allocations: 220 kB / 404.1 MB, free: 104 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001991/0.09765, allocations: 258.6 kB / 404.4 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007693/0.1053, allocations: 5.94 MB / 410.3 MB, free: 9.898 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/0.1273, allocations: 19.93 MB / 430.2 MB, free: 5.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004046/0.1313, allocations: 3.692 MB / 433.9 MB, free: 1.922 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002234/0.1335, allocations: 1.968 MB / 435.9 MB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006963/0.1405, allocations: 5.21 MB / 441.1 MB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.1405, allocations: 60.56 kB / 441.2 MB, free: 10.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 4.308e-06/0.1405, allocations: 0 / 441.2 MB, free: 10.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=240): time 0.01378/0.1543, allocations: 10.19 MB / 451.3 MB, free: 460 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.1544, allocations: 77.41 kB / 451.4 MB, free: 368 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1446/0.299, allocations: 3.203 MB / 454.6 MB, free: 116.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003896/0.2994, allocations: 65.52 kB / 454.7 MB, free: 116.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009282/0.3003, allocations: 2.562 MB / 457.2 MB, free: 115.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003565/0.3007, allocations: 0.8554 MB / 458.1 MB, free: 115 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000532/0.3012, allocations: 0.5564 MB / 458.7 MB, free: 114.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.959e-05/0.3013, allocations: 301.1 kB / 459 MB, free: 114.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.3027, allocations: 1.336 MB / 460.3 MB, free: 113.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.3042, allocations: 2.37 MB / 462.7 MB, free: 112.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002987/0.3072, allocations: 3.927 MB / 466.6 MB, free: 109.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.3072, allocations: 7.344 kB / 466.6 MB, free: 109.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.004302/0.3115, allocations: 4.562 MB / 471.2 MB, free: 106.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.3116, allocations: 16 kB / 471.2 MB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.3116, allocations: 32 kB / 471.2 MB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007005/0.3123, allocations: 0.5291 MB / 471.7 MB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.3136, allocations: 0.748 MB / 472.5 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004797/0.3184, allocations: 9.707 MB / 482.2 MB, free: 95.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.3201, allocations: 183.3 kB / 482.4 MB, free: 95.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.3203, allocations: 140 kB / 482.5 MB, free: 95.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001956/0.3222, allocations: 1.578 MB / 484.1 MB, free: 93.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002897/0.3225, allocations: 365.4 kB / 484.4 MB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0037/0.3262, allocations: 3.803 MB / 488.2 MB, free: 89.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.3262, allocations: 24 kB / 488.3 MB, free: 89.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.3262, allocations: 11.94 kB / 488.3 MB, free: 89.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3262, allocations: 15.89 kB / 488.3 MB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007629/0.3339, allocations: 8.187 MB / 496.5 MB, free: 80.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.3339, allocations: 4 kB / 496.5 MB, free: 80.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/0.3347, allocations: 412 kB / 496.9 MB, free: 80.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009421/0.3357, allocations: 0.7286 MB / 497.6 MB, free: 79.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.3358, allocations: 67.97 kB / 497.7 MB, free: 79.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006777/0.3426, allocations: 15.8 MB / 0.5014 GB, free: 63.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3426, allocations: 7.938 kB / 0.5014 GB, free: 63.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00513/0.3477, allocations: 5.605 MB / 0.5069 GB, free: 57.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008569/0.3485, allocations: 0.6343 MB / 0.5075 GB, free: 56.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/0.3488, allocations: 66.45 kB / 0.5076 GB, free: 56.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008396/0.3496, allocations: 135.9 kB / 0.5077 GB, free: 56.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.3499, allocations: 201.4 kB / 0.5079 GB, free: 56.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.554e-05/0.35, allocations: 71.98 kB / 0.508 GB, free: 56.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00186/0.3518, allocations: 2.123 MB / 0.5101 GB, free: 54.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3518, allocations: 0 / 0.5101 GB, free: 54.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00218/0.354, allocations: 0.9921 MB / 0.511 GB, free: 53.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00519/0.3592, allocations: 6.314 MB / 0.5172 GB, free: 46.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003512/0.3627, allocations: 3.849 MB / 0.521 GB, free: 42.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3627, allocations: 0 / 0.521 GB, free: 42.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002208/0.3649, allocations: 2.634 MB / 0.5235 GB, free: 40.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.3675, allocations: 0.9574 MB / 0.5245 GB, free: 39.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04023/0.4077, allocations: 35.25 MB / 0.5589 GB, free: 2.504 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/0.4098, allocations: 2.909 MB / 0.5617 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001836/0.4116, allocations: 0.8112 MB / 0.5625 GB, free: 14.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/0.4137, allocations: 2.109 MB / 0.5646 GB, free: 12.63 MB / 426.7 MB Notification: Performance of SimCode: time 2.134e-06/0.4137, allocations: 0 / 0.5646 GB, free: 12.63 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2622/0.6758, allocations: 93.14 MB / 0.6555 GB, free: 120.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.41, allocations: 3.938 kB / 0.6555 GB, free: 120.1 MB / 458.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 16.44448171276599]