Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.0012/0.001201, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 59.91 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09742, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01265/0.1101, allocations: 9.596 MB / 366.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006451/0.1166, allocations: 3.116 MB / 369.8 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001511/0.1181, allocations: 51.75 kB / 369.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.1203, allocations: 0.602 MB / 370.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003258/0.1236, allocations: 0.6876 MB / 371.1 MB, free: 184 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1859/0.3095, allocations: 340.3 kB / 371.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004106/0.3136, allocations: 2.549 MB / 374 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003045/0.3166, allocations: 2.328 MB / 376.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.319, allocations: 1.197 MB / 377.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.3209, allocations: 1.52 MB / 379.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004475/0.3214, allocations: 321.8 kB / 379.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008725/0.3223, allocations: 426.3 kB / 379.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008037/0.3231, allocations: 0.8972 MB / 380.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.3245, allocations: 1.423 MB / 382.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004164/0.3287, allocations: 4.118 MB / 386.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3287, allocations: 0 / 386.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3287, allocations: 4 kB / 386.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.415e-05/0.3288, allocations: 1.188 kB / 386.3 MB, free: 6.957 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005859/0.3347, allocations: 2.905 MB / 389.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3348, allocations: 8.562 kB / 389.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003834/0.3352, allocations: 313.3 kB / 389.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008427/0.336, allocations: 296 kB / 389.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.3384, allocations: 1.492 MB / 391.3 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.3386, allocations: 161.5 kB / 391.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.3389, allocations: 216.8 kB / 391.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004557/0.3434, allocations: 2.8 MB / 394.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.257e-05/0.3435, allocations: 6.781 kB / 394.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002116/0.3437, allocations: 90.16 kB / 394.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.3439, allocations: 104.1 kB / 394.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004094/0.348, allocations: 2.357 MB / 397 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.3629, allocations: 8.602 MB / 405.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002394/0.3653, allocations: 1.705 MB / 407.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.367, allocations: 0.9707 MB / 408.3 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002913/0.3673, allocations: 199.2 kB / 408.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.3673, allocations: 48.58 kB / 408.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.146e-06/0.3673, allocations: 4 kB / 408.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01315/0.3805, allocations: 6.231 MB / 414.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.3806, allocations: 64.41 kB / 414.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.3826, allocations: 1.445 MB / 416.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.4e-05/0.3827, allocations: 41.7 kB / 416.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006629/0.3834, allocations: 1.042 MB / 417.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.3837, allocations: 410.2 kB / 417.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004175/0.3841, allocations: 255.4 kB / 418 MB, free: 12.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3843, allocations: 361.9 kB / 418.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.3854, allocations: 0.6832 MB / 419 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.3867, allocations: 1.072 MB / 420.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.3891, allocations: 1.873 MB / 421.9 MB, free: 7.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3891, allocations: 4 kB / 422 MB, free: 7.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003951/0.3931, allocations: 2.417 MB / 424.4 MB, free: 5.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3931, allocations: 8 kB / 424.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.3932, allocations: 12 kB / 424.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009943/0.3942, allocations: 411.3 kB / 424.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.3954, allocations: 339.5 kB / 425.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006503/0.4019, allocations: 7.041 MB / 432.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.4034, allocations: 99.84 kB / 432.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4035, allocations: 63.98 kB / 432.3 MB, free: 12.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001193/0.4047, allocations: 0.6924 MB / 433 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003059/0.405, allocations: 162 kB / 433.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003672/0.4087, allocations: 2.123 MB / 435.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.4087, allocations: 12 kB / 435.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.4088, allocations: 4 kB / 435.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.4088, allocations: 11.91 kB / 435.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008097/0.4169, allocations: 4.59 MB / 439.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4169, allocations: 0 / 439.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009127/0.4178, allocations: 216.1 kB / 440.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.419, allocations: 451.3 kB / 440.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4191, allocations: 35.97 kB / 440.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007919/0.4271, allocations: 8.633 MB / 449.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4271, allocations: 4 kB / 449.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00518/0.4323, allocations: 3.103 MB / 452.3 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00093/0.4332, allocations: 379 kB / 452.7 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.4335, allocations: 31.98 kB / 452.7 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008904/0.4344, allocations: 83.91 kB / 452.8 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.4347, allocations: 96.75 kB / 452.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.871e-05/0.4347, allocations: 32 kB / 452.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001527/0.4363, allocations: 0.9927 MB / 453.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4363, allocations: 0 / 453.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001655/0.4379, allocations: 464.1 kB / 454.4 MB, free: 6.059 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005402/0.4434, allocations: 3.746 MB / 458.1 MB, free: 2.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004923/0.4483, allocations: 2.704 MB / 460.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.4483, allocations: 0 / 460.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.4507, allocations: 1.437 MB / 462.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.4529, allocations: 423.8 kB / 462.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03218/0.4851, allocations: 19.22 MB / 481.9 MB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.4866, allocations: 1.799 MB / 483.7 MB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001276/0.4879, allocations: 369.6 kB / 484.1 MB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.4891, allocations: 0.8189 MB / 484.9 MB, free: 6.164 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4891, allocations: 3.938 kB / 484.9 MB, free: 6.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08147/0.5706, allocations: 40.94 MB / 0.5135 GB, free: 13.66 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.5709, allocations: 250.1 kB / 0.5138 GB, free: 13.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.749/3.32, allocations: 3.375 kB / 0.5138 GB, free: 13.4 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches