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.001638/0.001638, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00204/0.00204, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.512/1.512, allocations: 230.5 MB / 258.2 MB, free: 7.789 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 59.91 kB / 378.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2684, allocations: 53.4 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01332/0.2817, allocations: 9.136 MB / 441.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007675/0.2894, allocations: 3.283 MB / 444.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001832/0.2912, allocations: 71.56 kB / 444.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.2939, allocations: 0.7569 MB / 445.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003539/0.2975, allocations: 0.8893 MB / 446.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.299, allocations: 435.3 kB / 446.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004481/0.3035, allocations: 2.766 MB / 449.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002843/0.3064, allocations: 1.348 MB / 450.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002688/0.3091, allocations: 1.312 MB / 451.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002955/0.312, allocations: 1.627 MB / 453.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.3131, allocations: 332 kB / 453.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.3148, allocations: 435.9 kB / 454.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.3165, allocations: 0.9543 MB / 455.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002543/0.319, allocations: 1.221 MB / 456.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006723/0.3257, allocations: 4.429 MB / 460.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3258, allocations: 0 / 460.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3258, allocations: 4 kB / 460.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001663/0.3259, allocations: 0 / 460.9 MB, free: 9.316 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.009086/0.335, allocations: 3.057 MB / 464 MB, free: 6.211 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.3351, allocations: 15.97 kB / 464 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.95e-05/0.3352, allocations: 60.61 kB / 464 MB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/0.3363, allocations: 328.9 kB / 464.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.3378, allocations: 331 kB / 464.7 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/0.3417, allocations: 1.562 MB / 466.2 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.3419, allocations: 160.4 kB / 466.4 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005607/0.3425, allocations: 223.9 kB / 466.6 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005816/0.3483, allocations: 3.025 MB / 469.6 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-05/0.3484, allocations: 7.984 kB / 469.6 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/0.3486, allocations: 87.98 kB / 469.7 MB, free: 272 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.3487, allocations: 120.3 kB / 469.8 MB, free: 148 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004854/0.3536, allocations: 2.434 MB / 472.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.3696, allocations: 8.159 MB / 480.4 MB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.372, allocations: 1.186 MB / 481.6 MB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.3738, allocations: 0.9137 MB / 482.5 MB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.374, allocations: 48.97 kB / 482.6 MB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.631e-05/0.3741, allocations: 43.56 kB / 482.6 MB, free: 3.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.857e-06/0.3741, allocations: 4 kB / 482.6 MB, free: 3.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01519/0.3893, allocations: 6.07 MB / 488.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3893, allocations: 64.41 kB / 488.8 MB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002595/0.3919, allocations: 1.57 MB / 490.3 MB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.3921, allocations: 45.7 kB / 490.4 MB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009303/0.393, allocations: 1.134 MB / 491.5 MB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.3934, allocations: 456.2 kB / 492 MB, free: 9.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004611/0.3939, allocations: 275.5 kB / 492.2 MB, free: 9.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.394, allocations: 301.1 kB / 492.5 MB, free: 9.078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.3953, allocations: 0.7144 MB / 493.2 MB, free: 8.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.3969, allocations: 1.142 MB / 494.4 MB, free: 7.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.3999, allocations: 1.967 MB / 496.3 MB, free: 4.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.3999, allocations: 7.938 kB / 496.4 MB, free: 4.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004727/0.4047, allocations: 2.44 MB / 498.8 MB, free: 2.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.4047, allocations: 16.03 kB / 498.8 MB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.913e-05/0.4047, allocations: 15.98 kB / 498.8 MB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.4058, allocations: 423 kB / 499.2 MB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.4072, allocations: 355.4 kB / 499.6 MB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007708/0.415, allocations: 6.757 MB / 0.4945 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.4165, allocations: 119.9 kB / 0.4946 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001916/0.4167, allocations: 67.98 kB / 0.4947 GB, free: 10.34 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.001507/0.4182, allocations: 0.7084 MB / 0.4953 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005165/0.4187, allocations: 186.8 kB / 0.4955 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004204/0.4229, allocations: 2.107 MB / 0.4976 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.423, allocations: 12 kB / 0.4976 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.423, allocations: 7.938 kB / 0.4976 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.423, allocations: 3.984 kB / 0.4976 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008973/0.432, allocations: 4.415 MB / 0.5019 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.432, allocations: 8.094 kB / 0.5019 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.433, allocations: 219.7 kB / 0.5021 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00129/0.4343, allocations: 454.9 kB / 0.5026 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/0.4344, allocations: 35.98 kB / 0.5026 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009129/0.4436, allocations: 8.234 MB / 0.5106 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.4436, allocations: 4 kB / 0.5106 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.4493, allocations: 3.136 MB / 0.5137 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4503, allocations: 330.8 kB / 0.514 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.4506, allocations: 32 kB / 0.5141 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009621/0.4516, allocations: 83.91 kB / 0.5141 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.4519, allocations: 104.7 kB / 0.5142 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.7e-05/0.452, allocations: 43.98 kB / 0.5143 GB, free: 5.539 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.4538, allocations: 1.067 MB / 0.5153 GB, free: 4.477 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4538, allocations: 0 / 0.5153 GB, free: 4.477 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00194/0.4557, allocations: 484 kB / 0.5158 GB, free: 4.004 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.005773/0.4615, allocations: 3.792 MB / 0.5195 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00409/0.4656, allocations: 2.14 MB / 0.5216 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.4656, allocations: 4 kB / 0.5216 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002572/0.4682, allocations: 1.427 MB / 0.523 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.4707, allocations: 492.8 kB / 0.5234 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2325/0.7032, allocations: 17.77 MB / 0.5408 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/0.7046, allocations: 1.299 MB / 0.5421 GB, free: 99.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.7057, allocations: 392.2 kB / 0.5424 GB, free: 99.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009274/0.7066, allocations: 0.88 MB / 0.5433 GB, free: 99.16 MB / 446.1 MB Notification: Performance of SimCode: time 9.61e-07/0.7066, allocations: 0 / 0.5433 GB, free: 99.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08729/0.7939, allocations: 48.59 MB / 0.5907 GB, free: 55.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.75, allocations: 14.48 kB / 0.5908 GB, free: 55.17 MB / 446.1 MB " [Timeout remaining time 644] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.640372882015072]