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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 117.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 200.6 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2299, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01055/0.2405, allocations: 10.35 MB / 419.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.2464, allocations: 3.474 MB / 422.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.2477, allocations: 59.75 kB / 422.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.2497, allocations: 0.7724 MB / 423.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00249/0.2522, allocations: 0.8463 MB / 424.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.2533, allocations: 415.4 kB / 424.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00302/0.2564, allocations: 2.759 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.2591, allocations: 2.406 MB / 429.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.2608, allocations: 1.273 MB / 431.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002164/0.263, allocations: 1.588 MB / 432.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006548/0.2636, allocations: 336 kB / 433 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.2647, allocations: 439.8 kB / 433.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009893/0.2657, allocations: 0.9427 MB / 434.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.2675, allocations: 1.505 MB / 435.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004008/0.2716, allocations: 4.396 MB / 440.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2716, allocations: 0 / 440.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2716, allocations: 0 / 440.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.714e-05/0.2717, allocations: 0 / 440.3 MB, free: 1.812 MB / 350.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.005733/0.2774, allocations: 3.065 MB / 443.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.2775, allocations: 12.03 kB / 443.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000382/0.2779, allocations: 325 kB / 443.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007903/0.2787, allocations: 313.5 kB / 444 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/0.2815, allocations: 1.629 MB / 445.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.2816, allocations: 168.4 kB / 445.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/0.2819, allocations: 227.9 kB / 446 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004352/0.2863, allocations: 2.909 MB / 448.9 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-05/0.2864, allocations: 15.84 kB / 448.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/0.2866, allocations: 91.98 kB / 449 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.2867, allocations: 112.3 kB / 449.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003867/0.2906, allocations: 2.433 MB / 451.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.3036, allocations: 9.016 MB / 460.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.3058, allocations: 1.7 MB / 462.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.3075, allocations: 0.9808 MB / 463.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002754/0.3078, allocations: 203.2 kB / 463.5 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.3079, allocations: 44.03 kB / 463.5 MB, free: 9.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 4.018e-06/0.3079, allocations: 0 / 463.5 MB, free: 9.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01408/0.322, allocations: 6.574 MB / 470.1 MB, free: 3.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.3221, allocations: 68.41 kB / 470.2 MB, free: 3.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/0.3245, allocations: 1.569 MB / 471.7 MB, free: 1.512 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.3246, allocations: 41.7 kB / 471.8 MB, free: 1.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007408/0.3254, allocations: 1.116 MB / 472.9 MB, free: 340 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003708/0.3257, allocations: 430 kB / 473.3 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004473/0.3262, allocations: 271.4 kB / 473.6 MB, free: 15.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.3263, allocations: 305.1 kB / 473.9 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.3275, allocations: 0.7105 MB / 474.6 MB, free: 14.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3289, allocations: 1.138 MB / 475.7 MB, free: 13.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0027/0.3317, allocations: 1.967 MB / 477.7 MB, free: 11.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.3317, allocations: 4 kB / 477.7 MB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004266/0.336, allocations: 2.53 MB / 480.2 MB, free: 8.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.336, allocations: 10.81 kB / 480.2 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.336, allocations: 20.28 kB / 480.2 MB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3371, allocations: 415.1 kB / 480.7 MB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3384, allocations: 359.4 kB / 481 MB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006773/0.3451, allocations: 7.123 MB / 488.1 MB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.3465, allocations: 111.8 kB / 488.2 MB, free: 128 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.3467, allocations: 63.94 kB / 488.3 MB, free: 64 kB / 398.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.00131/0.348, allocations: 0.716 MB / 489 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004474/0.3485, allocations: 169.8 kB / 489.2 MB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.3524, allocations: 2.194 MB / 491.4 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.3525, allocations: 15.98 kB / 491.4 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.3525, allocations: 11.94 kB / 491.4 MB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3525, allocations: 3.984 kB / 491.4 MB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008498/0.361, allocations: 4.763 MB / 496.2 MB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.361, allocations: 4 kB / 496.2 MB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009571/0.362, allocations: 231.6 kB / 496.4 MB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.3632, allocations: 463.3 kB / 496.8 MB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.3633, allocations: 35.98 kB / 496.9 MB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007902/0.3712, allocations: 8.678 MB / 0.4937 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/0.3712, allocations: 7.938 kB / 0.4937 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.3763, allocations: 3.214 MB / 0.4969 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009908/0.3773, allocations: 398.8 kB / 0.4972 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003532/0.3776, allocations: 28 kB / 0.4973 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3787, allocations: 87.89 kB / 0.4974 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.3789, allocations: 100.8 kB / 0.4974 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-05/0.379, allocations: 39.98 kB / 0.4975 GB, free: 10.04 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001698/0.3807, allocations: 1.071 MB / 0.4985 GB, free: 8.969 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3807, allocations: 4 kB / 0.4985 GB, free: 8.965 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001777/0.3825, allocations: 488 kB / 0.499 GB, free: 8.488 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.005323/0.3879, allocations: 3.862 MB / 0.5028 GB, free: 4.523 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003739/0.3916, allocations: 2.289 MB / 0.505 GB, free: 2.172 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3916, allocations: 4 kB / 0.505 GB, free: 2.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.394, allocations: 1.478 MB / 0.5065 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.3965, allocations: 483.2 kB / 0.5069 GB, free: 180 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02761/0.4241, allocations: 17.87 MB / 0.5244 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.426, allocations: 1.864 MB / 0.5262 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.4272, allocations: 394.8 kB / 0.5266 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/0.4284, allocations: 0.8781 MB / 0.5274 GB, free: 10.41 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4284, allocations: 0 / 0.5274 GB, free: 10.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2759/0.7043, allocations: 45.75 MB / 0.5721 GB, free: 102.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.03, allocations: 15.67 kB / 0.5721 GB, free: 102.1 MB / 462.1 MB (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 --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) 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.0.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) Reference file matches