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.0008232/0.0008235, allocations: 96.08 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009389/0.0009389, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002155/0.0002156, allocations: 4 kB / 307.9 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0814/0.08163, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.164/0.2457, allocations: 19.78 MB / 379.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009068/0.2548, allocations: 6.028 MB / 385.2 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.2567, allocations: 126.5 kB / 385.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.2591, allocations: 1.161 MB / 386.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003829/0.2629, allocations: 1.718 MB / 388.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.265, allocations: 1.148 MB / 389.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006819/0.2719, allocations: 6.753 MB / 396.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005043/0.2769, allocations: 4.521 MB / 400.6 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002971/0.2799, allocations: 2.039 MB / 402.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.283, allocations: 2.778 MB / 405.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005669/0.2836, allocations: 323.2 kB / 405.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.2851, allocations: 0.6402 MB / 406.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.2863, allocations: 1.382 MB / 407.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002484/0.2887, allocations: 2.769 MB / 410.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007966/0.2967, allocations: 9.678 MB / 420.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2967, allocations: 4 kB / 420.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2968, allocations: 0 / 420.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001486/0.2969, allocations: 0 / 420.2 MB, free: 15.12 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.01144/0.3084, allocations: 5.577 MB / 425.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3084, allocations: 8.031 kB / 425.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009237/0.3093, allocations: 0.7 MB / 426.5 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/0.3135, allocations: 1.017 MB / 427.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005211/0.3188, allocations: 3.455 MB / 431 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.3191, allocations: 402.8 kB / 431.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007306/0.3198, allocations: 0.5036 MB / 431.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.3309, allocations: 6.802 MB / 438.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.331, allocations: 8 kB / 438.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004371/0.3315, allocations: 204 kB / 438.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.3317, allocations: 250.1 kB / 439.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.3417, allocations: 5.779 MB / 444.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02994/0.3717, allocations: 21.29 MB / 466.2 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007909/0.3796, allocations: 8.835 MB / 475 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003412/0.3831, allocations: 2.245 MB / 477.3 MB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00886/0.392, allocations: 6.234 MB / 483.5 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.392, allocations: 56.56 kB / 483.6 MB, free: 13.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 4.258e-06/0.392, allocations: 0 / 483.6 MB, free: 13.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.01944/0.4115, allocations: 10.56 MB / 494.1 MB, free: 2.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.4115, allocations: 77.41 kB / 494.2 MB, free: 2.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004417/0.416, allocations: 2.925 MB / 497.1 MB, free: 15.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.4161, allocations: 65.7 kB / 497.2 MB, free: 15.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.4177, allocations: 2.369 MB / 499.5 MB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005951/0.4183, allocations: 0.7702 MB / 0.4886 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003065/0.4186, allocations: 231.8 kB / 0.4888 GB, free: 12.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.4187, allocations: 305.1 kB / 0.4891 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.4207, allocations: 1.286 MB / 0.4904 GB, free: 10.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002571/0.4233, allocations: 2.195 MB / 0.4925 GB, free: 8.281 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004692/0.428, allocations: 3.692 MB / 0.4961 GB, free: 4.195 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.428, allocations: 12 kB / 0.4961 GB, free: 4.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006613/0.4346, allocations: 4.493 MB / 0.5005 GB, free: 15.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/0.4347, allocations: 20 kB / 0.5005 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.054e-05/0.4347, allocations: 28 kB / 0.5005 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.4358, allocations: 0.5333 MB / 0.5011 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/0.4382, allocations: 0.6903 MB / 0.5017 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008116/0.4463, allocations: 9.504 MB / 0.511 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.4483, allocations: 183.7 kB / 0.5112 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.4485, allocations: 132 kB / 0.5113 GB, free: 3.848 MB / 430.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.002398/0.4509, allocations: 1.523 MB / 0.5128 GB, free: 2.312 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/0.4514, allocations: 320.1 kB / 0.5131 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006413/0.4578, allocations: 3.938 MB / 0.517 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/0.4578, allocations: 24 kB / 0.517 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.4579, allocations: 8 kB / 0.517 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.967e-05/0.4579, allocations: 11.95 kB / 0.517 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.4711, allocations: 8.541 MB / 0.5253 GB, free: 5.188 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.4712, allocations: 4 kB / 0.5254 GB, free: 5.184 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/0.4728, allocations: 383.7 kB / 0.5257 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.4746, allocations: 0.7481 MB / 0.5264 GB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/0.4747, allocations: 59.97 kB / 0.5265 GB, free: 3.977 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1633/0.638, allocations: 15.36 MB / 0.5415 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.638, allocations: 8.891 kB / 0.5415 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008034/0.6461, allocations: 5.616 MB / 0.547 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/0.6474, allocations: 0.6614 MB / 0.5476 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003569/0.6478, allocations: 57.06 kB / 0.5477 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.6492, allocations: 141.8 kB / 0.5478 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003965/0.6496, allocations: 164.6 kB / 0.548 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.6497, allocations: 71.45 kB / 0.5481 GB, free: 126 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.6525, allocations: 1.981 MB / 0.55 GB, free: 125.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.163e-06/0.6525, allocations: 1.125 kB / 0.55 GB, free: 125.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002784/0.6553, allocations: 0.945 MB / 0.5509 GB, free: 125.2 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.007691/0.663, allocations: 6.344 MB / 0.5571 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004863/0.6679, allocations: 3.991 MB / 0.561 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.6679, allocations: 3.062 kB / 0.561 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003105/0.671, allocations: 2.68 MB / 0.5636 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/0.6756, allocations: 0.8162 MB / 0.5644 GB, free: 118.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04865/0.7243, allocations: 42.01 MB / 0.6055 GB, free: 78.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.7264, allocations: 3.295 MB / 0.6087 GB, free: 75.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002053/0.7285, allocations: 0.758 MB / 0.6094 GB, free: 74.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/0.7302, allocations: 1.948 MB / 0.6113 GB, free: 72.77 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.7302, allocations: 0 / 0.6113 GB, free: 72.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08715/0.8173, allocations: 80.21 MB / 0.6896 GB, free: 9.145 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/0.8176, allocations: 266.7 kB / 0.6899 GB, free: 8.781 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.272/4.09, allocations: 0 / 0.6899 GB, free: 8.781 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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