Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001595/0.001595, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002078/0.002078, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.64 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.0968, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1688/0.2656, allocations: 20.92 MB / 378.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.2769, allocations: 6.186 MB / 384.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005092/0.282, allocations: 138.2 kB / 384.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004578/0.2866, allocations: 1.359 MB / 386.2 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007102/0.2938, allocations: 1.9 MB / 388.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003509/0.2973, allocations: 1.28 MB / 389.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007748/0.3051, allocations: 6.116 MB / 395.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006742/0.3118, allocations: 5.453 MB / 400.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00434/0.3162, allocations: 2.836 MB / 403.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005393/0.3216, allocations: 3.493 MB / 407.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001676/0.3233, allocations: 0.7812 MB / 408 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003162/0.3265, allocations: 1.097 MB / 409.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002027/0.3286, allocations: 1.952 MB / 411.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004786/0.3334, allocations: 3.361 MB / 414.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.3434, allocations: 10.26 MB / 424.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3435, allocations: 3.938 kB / 424.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3435, allocations: 3.938 kB / 424.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.3437, allocations: 4 kB / 424.7 MB, free: 9.117 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01755/0.3612, allocations: 6.617 MB / 431.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3613, allocations: 11.97 kB / 431.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001213/0.3625, allocations: 0.7039 MB / 432.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004594/0.3671, allocations: 1.017 MB / 433.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006284/0.3734, allocations: 3.482 MB / 436.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.3737, allocations: 394.8 kB / 436.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008932/0.3746, allocations: 0.5037 MB / 437.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.3883, allocations: 6.775 MB / 444.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.3885, allocations: 7.906 kB / 444.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006745/0.3892, allocations: 212 kB / 444.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002378/0.3895, allocations: 242.2 kB / 444.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.401, allocations: 5.755 MB / 450.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03623/0.4373, allocations: 21.18 MB / 471.6 MB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008501/0.4458, allocations: 8.813 MB / 480.4 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003744/0.4496, allocations: 2.225 MB / 482.6 MB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/0.4605, allocations: 6.206 MB / 488.9 MB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/0.4606, allocations: 64.5 kB / 488.9 MB, free: 6.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 5.57e-06/0.4607, allocations: 0 / 488.9 MB, free: 6.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02125/0.4819, allocations: 10.42 MB / 499.3 MB, free: 12.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.482, allocations: 77.34 kB / 499.4 MB, free: 12.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004897/0.4869, allocations: 2.925 MB / 0.4906 GB, free: 9.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002312/0.4872, allocations: 61.7 kB / 0.4906 GB, free: 9.176 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/0.4887, allocations: 2.365 MB / 0.4929 GB, free: 6.785 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006677/0.4894, allocations: 0.7742 MB / 0.4937 GB, free: 6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008994/0.4903, allocations: 0.5099 MB / 0.4942 GB, free: 5.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.4904, allocations: 309.1 kB / 0.4945 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.4925, allocations: 1.263 MB / 0.4957 GB, free: 3.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002696/0.4952, allocations: 2.179 MB / 0.4978 GB, free: 1.332 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004975/0.5002, allocations: 3.664 MB / 0.5014 GB, free: 13.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.5003, allocations: 8 kB / 0.5014 GB, free: 13.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007363/0.5076, allocations: 4.466 MB / 0.5058 GB, free: 8.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.5077, allocations: 16 kB / 0.5058 GB, free: 8.715 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.129e-05/0.5077, allocations: 28 kB / 0.5058 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.5089, allocations: 0.5371 MB / 0.5064 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/0.5114, allocations: 0.6864 MB / 0.507 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009112/0.5205, allocations: 10.35 MB / 0.5171 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/0.5233, allocations: 171.7 kB / 0.5173 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004268/0.5238, allocations: 128 kB / 0.5174 GB, free: 12.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002799/0.5266, allocations: 1.524 MB / 0.5189 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008202/0.5274, allocations: 320.1 kB / 0.5192 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006942/0.5344, allocations: 3.907 MB / 0.523 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.5344, allocations: 20 kB / 0.523 GB, free: 6.223 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.952e-05/0.5345, allocations: 8 kB / 0.5231 GB, free: 6.215 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/0.5345, allocations: 15.84 kB / 0.5231 GB, free: 6.199 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1771/0.7116, allocations: 8.508 MB / 0.5314 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.7117, allocations: 4.094 kB / 0.5314 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/0.7135, allocations: 377.8 kB / 0.5317 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001875/0.7153, allocations: 0.7505 MB / 0.5325 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.7155, allocations: 64.39 kB / 0.5325 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/0.7284, allocations: 16.78 MB / 0.5489 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.7284, allocations: 9.094 kB / 0.5489 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/0.7375, allocations: 5.572 MB / 0.5544 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.7391, allocations: 0.6468 MB / 0.555 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004871/0.7396, allocations: 56.27 kB / 0.5551 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.7411, allocations: 133.2 kB / 0.5552 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004328/0.7416, allocations: 169.8 kB / 0.5553 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.7417, allocations: 68.59 kB / 0.5554 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.7446, allocations: 1.972 MB / 0.5573 GB, free: 120.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7446, allocations: 1.625 kB / 0.5573 GB, free: 120.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003983/0.7486, allocations: 0.9429 MB / 0.5583 GB, free: 120.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008117/0.7567, allocations: 6.293 MB / 0.5644 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009066/0.7658, allocations: 5.394 MB / 0.5697 GB, free: 115.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.7658, allocations: 4.125 kB / 0.5697 GB, free: 115.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003451/0.7693, allocations: 2.663 MB / 0.5723 GB, free: 114.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/0.773, allocations: 0.8616 MB / 0.5731 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04331/0.8163, allocations: 39.66 MB / 0.6119 GB, free: 72.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/0.8188, allocations: 3.309 MB / 0.6151 GB, free: 68.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002373/0.8212, allocations: 0.7541 MB / 0.6158 GB, free: 68.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.823, allocations: 1.948 MB / 0.6177 GB, free: 66.18 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.823, allocations: 0 / 0.6177 GB, free: 66.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2868/1.11, allocations: 83.25 MB / 0.699 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/12.31, allocations: 3.562 kB / 0.699 GB, free: 132.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches