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.001217/0.001217, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.0012/0.0012, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.311/1.311, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 47.48 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.09368, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01079/0.1045, allocations: 9.629 MB / 359.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005171/0.1097, allocations: 3.092 MB / 362.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006951/0.1104, allocations: 55.75 kB / 362.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.1118, allocations: 0.6713 MB / 363.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.1135, allocations: 0.7648 MB / 364.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007762/0.1143, allocations: 387.4 kB / 364.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002208/0.1165, allocations: 2.533 MB / 367.3 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002337/0.1188, allocations: 2.334 MB / 369.6 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.152/0.2709, allocations: 1.176 MB / 370.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002065/0.2729, allocations: 1.495 MB / 372.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005267/0.2735, allocations: 317.1 kB / 372.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009054/0.2744, allocations: 418.3 kB / 373 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007866/0.2752, allocations: 0.8988 MB / 373.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.2765, allocations: 1.414 MB / 375.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003718/0.2802, allocations: 4.102 MB / 379.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2802, allocations: 0.625 kB / 379.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2802, allocations: 0 / 379.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-05/0.2803, allocations: 3.562 kB / 379.4 MB, free: 11.33 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.005545/0.2858, allocations: 2.902 MB / 382.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.2859, allocations: 15.97 kB / 382.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004008/0.2863, allocations: 305.7 kB / 382.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007293/0.287, allocations: 293.5 kB / 382.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002082/0.2891, allocations: 1.489 MB / 384.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.2893, allocations: 165.5 kB / 384.6 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.2896, allocations: 213.4 kB / 384.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004262/0.2939, allocations: 2.796 MB / 387.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.263e-05/0.294, allocations: 9.219 kB / 387.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/0.2942, allocations: 85.59 kB / 387.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.2943, allocations: 105.1 kB / 387.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003638/0.298, allocations: 2.355 MB / 390.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.3088, allocations: 8.597 MB / 398.7 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002245/0.3111, allocations: 1.705 MB / 400.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.3127, allocations: 0.9724 MB / 401.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.3129, allocations: 208 kB / 401.6 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.313, allocations: 42.84 kB / 401.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.615e-06/0.313, allocations: 0 / 401.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01318/0.3262, allocations: 6.226 MB / 407.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3262, allocations: 67.03 kB / 408 MB, free: 7.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.3284, allocations: 1.441 MB / 409.4 MB, free: 6.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-05/0.3285, allocations: 53.64 kB / 409.4 MB, free: 6.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006643/0.3291, allocations: 1.037 MB / 410.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002925/0.3294, allocations: 404.5 kB / 410.9 MB, free: 5.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003975/0.3298, allocations: 255.4 kB / 411.1 MB, free: 4.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.33, allocations: 361.9 kB / 411.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.3311, allocations: 0.6871 MB / 412.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.3325, allocations: 1.075 MB / 413.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002539/0.335, allocations: 1.868 MB / 415.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.335, allocations: 4 kB / 415.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003986/0.339, allocations: 2.41 MB / 417.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3391, allocations: 12.25 kB / 417.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.3391, allocations: 16 kB / 417.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009562/0.34, allocations: 419 kB / 418 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.3413, allocations: 330.1 kB / 418.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006858/0.3481, allocations: 7.049 MB / 425.3 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.3494, allocations: 103.8 kB / 425.4 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.3495, allocations: 56 kB / 425.5 MB, free: 5.781 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.001248/0.3508, allocations: 0.6886 MB / 426.2 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.3511, allocations: 158.1 kB / 426.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003747/0.3548, allocations: 2.13 MB / 428.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.3549, allocations: 12 kB / 428.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3549, allocations: 4 kB / 428.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.3549, allocations: 3.984 kB / 428.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007345/0.3622, allocations: 4.58 MB / 433.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/0.3623, allocations: 8.031 kB / 433.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009145/0.3632, allocations: 214.6 kB / 433.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.3643, allocations: 447.2 kB / 433.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.68e-05/0.3644, allocations: 31.98 kB / 433.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007654/0.3721, allocations: 8.619 MB / 442.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.3721, allocations: 11.56 kB / 442.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004742/0.3768, allocations: 3.102 MB / 445.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00075/0.3776, allocations: 383 kB / 445.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.378, allocations: 31.98 kB / 445.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009949/0.379, allocations: 79.84 kB / 446 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.3792, allocations: 100.2 kB / 446.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-05/0.3793, allocations: 35.98 kB / 446.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001732/0.3811, allocations: 0.9847 MB / 447.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3811, allocations: 0 / 447.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001741/0.3828, allocations: 460.1 kB / 447.5 MB, free: 15.06 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.005337/0.3882, allocations: 3.755 MB / 451.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004832/0.393, allocations: 2.699 MB / 454 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.393, allocations: 4 kB / 454 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.3954, allocations: 1.442 MB / 455.4 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.3978, allocations: 411.8 kB / 455.8 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/0.4258, allocations: 18.33 MB / 474.2 MB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001928/0.4277, allocations: 1.807 MB / 476 MB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001261/0.429, allocations: 369.5 kB / 476.3 MB, free: 1.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.4301, allocations: 0.8156 MB / 477.1 MB, free: 272 kB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4301, allocations: 0 / 477.1 MB, free: 272 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07563/0.5057, allocations: 40.99 MB / 0.506 GB, free: 7.746 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.48, allocations: 7.609 kB / 0.506 GB, free: 7.742 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