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.001392/0.001392, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001539/0.001539, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.324/1.324, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000976/0.000976, allocations: 50.47 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07835/0.07935, allocations: 49.46 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0102/0.08957, allocations: 9.551 MB / 359.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00499/0.09459, allocations: 3.065 MB / 362.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.09567, allocations: 51.75 kB / 362.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.09727, allocations: 0.5864 MB / 362.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001868/0.09915, allocations: 0.6955 MB / 363.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.09986, allocations: 351.6 kB / 363.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002338/0.1022, allocations: 2.857 MB / 366.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.1042, allocations: 1.965 MB / 368.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009922/0.1052, allocations: 1.035 MB / 369.7 MB, free: 476 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1598/0.265, allocations: 1.432 MB / 371.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006471/0.2657, allocations: 195.5 kB / 371.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.2667, allocations: 313.7 kB / 371.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008293/0.2676, allocations: 0.7695 MB / 372.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.2691, allocations: 1.291 MB / 373.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003862/0.2729, allocations: 4.005 MB / 377.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2729, allocations: 0 / 377.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.273, allocations: 1.219 kB / 377.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.645e-05/0.273, allocations: 0.9375 kB / 377.7 MB, free: 11.54 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.005491/0.2785, allocations: 2.91 MB / 380.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.2786, allocations: 9.406 kB / 380.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003791/0.279, allocations: 316.4 kB / 380.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008907/0.2799, allocations: 286.6 kB / 381.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002158/0.282, allocations: 1.489 MB / 382.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.2822, allocations: 167.8 kB / 382.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003138/0.2825, allocations: 209.2 kB / 383 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004652/0.2872, allocations: 2.802 MB / 385.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-05/0.2873, allocations: 10.72 kB / 385.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002197/0.2875, allocations: 86.72 kB / 385.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.2876, allocations: 109 kB / 386 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003939/0.2916, allocations: 2.346 MB / 388.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.3027, allocations: 8.604 MB / 397 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.3047, allocations: 1.691 MB / 398.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.3064, allocations: 0.9794 MB / 399.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002868/0.3067, allocations: 196.5 kB / 399.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.3067, allocations: 50.92 kB / 399.9 MB, free: 14.99 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.985e-06/0.3068, allocations: 0 / 399.9 MB, free: 14.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01297/0.3197, allocations: 6.229 MB / 406.1 MB, free: 10 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.3198, allocations: 64.41 kB / 406.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001975/0.3218, allocations: 1.441 MB / 407.6 MB, free: 8.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.268e-05/0.3219, allocations: 45.7 kB / 407.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007458/0.3226, allocations: 1.044 MB / 408.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.3229, allocations: 401.2 kB / 409.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.3234, allocations: 255.5 kB / 409.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3235, allocations: 365.1 kB / 409.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.3247, allocations: 0.6909 MB / 410.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.3261, allocations: 1.072 MB / 411.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002704/0.3289, allocations: 1.866 MB / 413.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.3289, allocations: 0 / 413.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004095/0.333, allocations: 2.418 MB / 415.8 MB, free: 96 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.333, allocations: 12 kB / 415.8 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.333, allocations: 12.25 kB / 415.8 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.3341, allocations: 413.8 kB / 416.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.3353, allocations: 332.2 kB / 416.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007061/0.3424, allocations: 6.454 MB / 423 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3436, allocations: 95.94 kB / 423.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000146/0.3438, allocations: 59.98 kB / 423.1 MB, free: 8.375 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.001418/0.3452, allocations: 0.6917 MB / 423.8 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/0.3456, allocations: 158 kB / 424 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/0.3497, allocations: 2.134 MB / 426.1 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.3497, allocations: 12 kB / 426.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.3498, allocations: 4 kB / 426.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.3498, allocations: 7.969 kB / 426.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008252/0.358, allocations: 4.586 MB / 430.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.3581, allocations: 4 kB / 430.7 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009635/0.359, allocations: 212.3 kB / 430.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.3602, allocations: 455.5 kB / 431.4 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-05/0.3604, allocations: 31.98 kB / 431.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008123/0.3685, allocations: 7.922 MB / 439.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.3685, allocations: 5.5 kB / 439.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005141/0.3737, allocations: 3.102 MB / 442.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007891/0.3745, allocations: 379 kB / 442.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/0.3748, allocations: 27.98 kB / 442.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009594/0.3758, allocations: 87.91 kB / 442.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.376, allocations: 95.62 kB / 443 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-05/0.3761, allocations: 39.98 kB / 443.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001622/0.3777, allocations: 0.9808 MB / 444 MB, free: 2.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3778, allocations: 0 / 444 MB, free: 2.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001813/0.3796, allocations: 464.1 kB / 444.5 MB, free: 2.359 MB / 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.005456/0.385, allocations: 3.744 MB / 448.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004077/0.3891, allocations: 2.219 MB / 450.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.3892, allocations: 4.75 kB / 450.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002523/0.3917, allocations: 1.442 MB / 451.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.3944, allocations: 403.6 kB / 452.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03421/0.4286, allocations: 19.19 MB / 471.5 MB, free: 6.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001889/0.4305, allocations: 1.807 MB / 473.3 MB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.4318, allocations: 361.6 kB / 473.6 MB, free: 4.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/0.433, allocations: 0.8156 MB / 474.5 MB, free: 3.203 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.433, allocations: 0 / 474.5 MB, free: 3.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06864/0.5016, allocations: 39.87 MB / 0.5023 GB, free: 11.8 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.5018, allocations: 243.2 kB / 0.5025 GB, free: 11.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.704/3.206, allocations: 4 kB / 0.5025 GB, free: 11.55 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