Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001029/0.00103, allocations: 114.4 kB / 16.63 MB, free: 6.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009994/0.0009995, allocations: 189.8 kB / 17.55 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 45.7 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08288/0.08403, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009352/0.09341, allocations: 9.571 MB / 359.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004441/0.09787, allocations: 3.057 MB / 362.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007525/0.09864, allocations: 51.75 kB / 362.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.09987, allocations: 0.602 MB / 363 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.1014, allocations: 0.676 MB / 363.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.102, allocations: 347.7 kB / 364 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00209/0.1041, allocations: 2.53 MB / 366.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/0.1063, allocations: 2.33 MB / 368.8 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.1082, allocations: 1.191 MB / 370 MB, free: 176 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1368/0.245, allocations: 1.507 MB / 371.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.2461, allocations: 319.5 kB / 371.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.2478, allocations: 423.9 kB / 372.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00147/0.2493, allocations: 0.8946 MB / 373.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002905/0.2522, allocations: 1.417 MB / 374.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005392/0.2576, allocations: 4.109 MB / 378.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2576, allocations: 1.844 kB / 378.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2576, allocations: 0 / 378.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001464/0.2578, allocations: 0 / 378.7 MB, free: 12.12 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.008784/0.2666, allocations: 2.898 MB / 381.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.2666, allocations: 9.656 kB / 381.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009874/0.2676, allocations: 314 kB / 381.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.2688, allocations: 290 kB / 382.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.2713, allocations: 1.496 MB / 383.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.2715, allocations: 169 kB / 383.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003133/0.2718, allocations: 209.6 kB / 384 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004489/0.2763, allocations: 2.798 MB / 386.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.417e-05/0.2764, allocations: 6.531 kB / 386.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001979/0.2766, allocations: 90.88 kB / 386.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/0.2767, allocations: 111.8 kB / 387 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003616/0.2803, allocations: 2.352 MB / 389.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.2923, allocations: 8.594 MB / 398 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00334/0.2956, allocations: 1.697 MB / 399.7 MB, free: 15.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002229/0.2979, allocations: 0.9638 MB / 400.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/0.2982, allocations: 208 kB / 400.9 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.2983, allocations: 45.97 kB / 400.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.537e-06/0.2983, allocations: 3.312 kB / 400.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01873/0.3171, allocations: 6.227 MB / 407.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.3171, allocations: 64.41 kB / 407.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/0.3203, allocations: 1.437 MB / 408.6 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.3205, allocations: 45.69 kB / 408.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.3215, allocations: 1.042 MB / 409.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005394/0.3221, allocations: 404 kB / 410.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006283/0.3227, allocations: 251.5 kB / 410.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3229, allocations: 365.9 kB / 410.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/0.3246, allocations: 0.6871 MB / 411.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.3267, allocations: 1.074 MB / 412.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/0.3304, allocations: 1.867 MB / 414.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3305, allocations: 4.875 kB / 414.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005973/0.3365, allocations: 2.411 MB / 416.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.3365, allocations: 15.98 kB / 416.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.3365, allocations: 12 kB / 416.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.3379, allocations: 420.1 kB / 417.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/0.3398, allocations: 327.4 kB / 417.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009543/0.3493, allocations: 7.051 MB / 424.6 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.3513, allocations: 103.8 kB / 424.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.3515, allocations: 59.98 kB / 424.7 MB, free: 6.969 MB / 334.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.001787/0.3533, allocations: 0.6885 MB / 425.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006121/0.3539, allocations: 158.1 kB / 425.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0051/0.359, allocations: 2.129 MB / 427.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.3591, allocations: 12 kB / 427.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.3591, allocations: 10.91 kB / 427.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.3591, allocations: 7.969 kB / 427.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.3697, allocations: 4.579 MB / 432.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.3697, allocations: 4 kB / 432.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.371, allocations: 219.3 kB / 432.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.3726, allocations: 443.9 kB / 433 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.3728, allocations: 31.98 kB / 433 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.3842, allocations: 8.626 MB / 441.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.3842, allocations: 10.09 kB / 441.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00723/0.3914, allocations: 3.096 MB / 444.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.3927, allocations: 375 kB / 445.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005804/0.3933, allocations: 37.02 kB / 445.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001568/0.3949, allocations: 79.91 kB / 445.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003311/0.3952, allocations: 96.09 kB / 445.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.3954, allocations: 43.98 kB / 445.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002474/0.3979, allocations: 0.9847 MB / 446.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3979, allocations: 0 / 446.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002939/0.4008, allocations: 460.1 kB / 446.8 MB, free: 244 kB / 350.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.005475/0.4063, allocations: 3.744 MB / 450.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004755/0.4111, allocations: 2.707 MB / 453.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4111, allocations: 0 / 453.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.4134, allocations: 1.44 MB / 454.7 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.4158, allocations: 417.9 kB / 455.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03252/0.4483, allocations: 19.21 MB / 474.3 MB, free: 3.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/0.4504, allocations: 1.807 MB / 476.1 MB, free: 1.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001201/0.4516, allocations: 369.5 kB / 476.5 MB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/0.4528, allocations: 0.8156 MB / 477.3 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4528, allocations: 0 / 477.3 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07172/0.5245, allocations: 40.83 MB / 0.506 GB, free: 8.266 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.5247, allocations: 249.8 kB / 0.5062 GB, free: 8.012 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.764/3.289, allocations: 0 / 0.5062 GB, free: 8.012 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches