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.001108/0.001108, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2306, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01075/0.2414, allocations: 9.663 MB / 418.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00562/0.247, allocations: 3.161 MB / 421.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.2484, allocations: 55.75 kB / 421.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.2503, allocations: 0.7104 MB / 422.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002532/0.2528, allocations: 0.7999 MB / 423.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.2539, allocations: 395.4 kB / 423.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002983/0.2569, allocations: 2.56 MB / 426.1 MB, free: 132 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.2599, allocations: 2.334 MB / 428.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.2616, allocations: 1.199 MB / 429.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00223/0.2638, allocations: 1.495 MB / 431.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006802/0.2645, allocations: 324 kB / 431.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.2656, allocations: 419.8 kB / 431.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001159/0.2668, allocations: 0.8961 MB / 432.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001938/0.2687, allocations: 1.419 MB / 434.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004307/0.2731, allocations: 4.177 MB / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2731, allocations: 0 / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.2731, allocations: 0 / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.944e-05/0.2732, allocations: 0 / 438.3 MB, free: 3.785 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005557/0.2787, allocations: 2.984 MB / 441.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2788, allocations: 15.97 kB / 441.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003724/0.2792, allocations: 308.2 kB / 441.6 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007734/0.2799, allocations: 311.2 kB / 442 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.2826, allocations: 1.555 MB / 443.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.2827, allocations: 164.1 kB / 443.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.283, allocations: 208 kB / 443.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004416/0.2875, allocations: 2.803 MB / 446.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/0.2875, allocations: 4 kB / 446.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.2877, allocations: 84 kB / 446.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/0.2878, allocations: 108.2 kB / 446.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003827/0.2917, allocations: 2.351 MB / 449.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/0.3044, allocations: 8.518 MB / 457.7 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002377/0.3069, allocations: 1.709 MB / 459.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/0.3085, allocations: 0.9518 MB / 460.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000294/0.3089, allocations: 207.2 kB / 460.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.3089, allocations: 47.5 kB / 460.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.975e-06/0.3089, allocations: 0 / 460.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01283/0.3217, allocations: 6.268 MB / 466.9 MB, free: 6.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3218, allocations: 68.41 kB / 467 MB, free: 6.316 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.3238, allocations: 1.441 MB / 468.4 MB, free: 4.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.887e-05/0.3239, allocations: 45.7 kB / 468.5 MB, free: 4.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007393/0.3246, allocations: 1.067 MB / 469.5 MB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003277/0.325, allocations: 432.3 kB / 470 MB, free: 3.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000407/0.3254, allocations: 267.4 kB / 470.2 MB, free: 3.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3255, allocations: 357.9 kB / 470.6 MB, free: 2.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.3267, allocations: 0.6949 MB / 471.3 MB, free: 1.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.3283, allocations: 1.066 MB / 472.3 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.3308, allocations: 1.868 MB / 474.2 MB, free: 14.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.874e-06/0.3309, allocations: 4 kB / 474.2 MB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003989/0.3349, allocations: 2.426 MB / 476.6 MB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3349, allocations: 12 kB / 476.6 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.3349, allocations: 15.94 kB / 476.6 MB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/0.3359, allocations: 426.9 kB / 477.1 MB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.3371, allocations: 319.5 kB / 477.4 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006815/0.3439, allocations: 7.038 MB / 484.4 MB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.3453, allocations: 99.84 kB / 484.5 MB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.3455, allocations: 60 kB / 484.6 MB, free: 3.883 MB / 398.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.001158/0.3466, allocations: 0.7002 MB / 485.3 MB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.347, allocations: 170.9 kB / 485.4 MB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003797/0.3508, allocations: 2.142 MB / 487.6 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.3509, allocations: 12 kB / 487.6 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.3509, allocations: 4 kB / 487.6 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.3509, allocations: 3.984 kB / 487.6 MB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.3588, allocations: 4.563 MB / 492.2 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.3589, allocations: 4 kB / 492.2 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009177/0.3598, allocations: 211.7 kB / 492.4 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.3609, allocations: 443.4 kB / 492.8 MB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.361, allocations: 39.98 kB / 492.8 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007986/0.369, allocations: 8.632 MB / 0.4897 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.3691, allocations: 7.938 kB / 0.4897 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004967/0.374, allocations: 3.116 MB / 0.4928 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009033/0.375, allocations: 383.9 kB / 0.4931 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.3753, allocations: 35.98 kB / 0.4932 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009899/0.3763, allocations: 83.84 kB / 0.4933 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.3766, allocations: 88.88 kB / 0.4933 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.131e-05/0.3766, allocations: 39.92 kB / 0.4934 GB, free: 14.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001604/0.3783, allocations: 0.9927 MB / 0.4943 GB, free: 13.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3783, allocations: 0 / 0.4943 GB, free: 13.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001651/0.3799, allocations: 463.9 kB / 0.4948 GB, free: 12.92 MB / 430.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.005472/0.3854, allocations: 3.746 MB / 0.4984 GB, free: 9.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003802/0.3892, allocations: 2.228 MB / 0.5006 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.3893, allocations: 8.875 kB / 0.5006 GB, free: 6.781 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.3916, allocations: 1.442 MB / 0.502 GB, free: 5.285 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.3938, allocations: 423.5 kB / 0.5024 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02597/0.4197, allocations: 16.92 MB / 0.519 GB, free: 3.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/0.4215, allocations: 1.807 MB / 0.5207 GB, free: 1.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.4226, allocations: 361.6 kB / 0.5211 GB, free: 1.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/0.4237, allocations: 0.8195 MB / 0.5219 GB, free: 256 kB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4237, allocations: 0 / 0.5219 GB, free: 256 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2527/0.6764, allocations: 41.93 MB / 0.5628 GB, free: 110 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.6, allocations: 9.812 kB / 0.5628 GB, free: 110 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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