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.001072/0.001072, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 59.72 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2091/0.3375, allocations: 20.92 MB / 378.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.3483, allocations: 6.189 MB / 384.7 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003616/0.3519, allocations: 137.7 kB / 384.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004032/0.356, allocations: 1.36 MB / 386.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006875/0.3629, allocations: 1.898 MB / 388.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.3663, allocations: 1.28 MB / 389.4 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008648/0.3749, allocations: 6.114 MB / 395.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008249/0.3832, allocations: 5.45 MB / 400.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006189/0.3894, allocations: 2.835 MB / 403.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006733/0.3962, allocations: 3.501 MB / 407.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.3979, allocations: 0.7812 MB / 408.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.4009, allocations: 1.097 MB / 409.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001849/0.4027, allocations: 1.948 MB / 411.1 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004889/0.4076, allocations: 3.357 MB / 414.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.4182, allocations: 10.26 MB / 424.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4182, allocations: 0 / 424.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4183, allocations: 0 / 424.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002506/0.4185, allocations: 0 / 424.7 MB, free: 9.059 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.01773/0.4363, allocations: 6.629 MB / 431.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.4363, allocations: 8.031 kB / 431.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001219/0.4375, allocations: 0.7039 MB / 432.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004614/0.4422, allocations: 1.017 MB / 433.1 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006884/0.4491, allocations: 3.478 MB / 436.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003745/0.4495, allocations: 394.8 kB / 436.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.4506, allocations: 0.5037 MB / 437.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01414/0.4647, allocations: 6.775 MB / 444.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.4649, allocations: 15.84 kB / 444.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008433/0.4658, allocations: 208 kB / 444.4 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002574/0.4661, allocations: 246.1 kB / 444.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.4797, allocations: 5.748 MB / 450.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04237/0.5222, allocations: 21.19 MB / 471.6 MB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009218/0.5314, allocations: 8.816 MB / 480.4 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004366/0.5358, allocations: 2.222 MB / 482.7 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.5484, allocations: 6.214 MB / 488.9 MB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.5484, allocations: 52.56 kB / 488.9 MB, free: 6.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 4.439e-06/0.5485, allocations: 0 / 488.9 MB, free: 6.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.0259/0.5744, allocations: 10.42 MB / 499.3 MB, free: 12.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.5745, allocations: 77.41 kB / 499.4 MB, free: 12.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005717/0.5802, allocations: 2.925 MB / 0.4906 GB, free: 9.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002984/0.5805, allocations: 65.7 kB / 0.4906 GB, free: 9.105 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.5824, allocations: 2.361 MB / 0.4929 GB, free: 6.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008551/0.5832, allocations: 0.7664 MB / 0.4937 GB, free: 5.941 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009657/0.5842, allocations: 0.5137 MB / 0.4942 GB, free: 5.418 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5843, allocations: 305.1 kB / 0.4945 GB, free: 5.117 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.5865, allocations: 1.274 MB / 0.4957 GB, free: 3.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002716/0.5892, allocations: 2.175 MB / 0.4978 GB, free: 1.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005147/0.5944, allocations: 3.668 MB / 0.5014 GB, free: 13.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.313e-05/0.5944, allocations: 8 kB / 0.5014 GB, free: 13.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007579/0.602, allocations: 4.462 MB / 0.5058 GB, free: 8.664 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.6021, allocations: 16 kB / 0.5058 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.213e-05/0.6021, allocations: 32.53 kB / 0.5058 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.6034, allocations: 0.5367 MB / 0.5064 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002471/0.6059, allocations: 0.6786 MB / 0.507 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009055/0.6149, allocations: 10.35 MB / 0.5171 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/0.6174, allocations: 183.7 kB / 0.5173 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003448/0.6178, allocations: 128 kB / 0.5174 GB, free: 12.02 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.002903/0.6207, allocations: 1.527 MB / 0.5189 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008124/0.6215, allocations: 316.1 kB / 0.5192 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006955/0.6285, allocations: 3.899 MB / 0.523 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.6286, allocations: 24 kB / 0.5231 GB, free: 6.152 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.968e-05/0.6286, allocations: 8 kB / 0.5231 GB, free: 6.145 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.477e-05/0.6286, allocations: 15.91 kB / 0.5231 GB, free: 6.129 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1984/0.827, allocations: 8.515 MB / 0.5314 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.8271, allocations: 3.688 kB / 0.5314 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/0.8288, allocations: 377.4 kB / 0.5318 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.8307, allocations: 0.7453 MB / 0.5325 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/0.8309, allocations: 60.2 kB / 0.5325 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/0.8445, allocations: 16.78 MB / 0.5489 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.8445, allocations: 10.3 kB / 0.5489 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/0.8547, allocations: 5.572 MB / 0.5544 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/0.8568, allocations: 0.6481 MB / 0.555 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007302/0.8576, allocations: 57.16 kB / 0.5551 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/0.8593, allocations: 131.7 kB / 0.5552 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/0.8598, allocations: 169.7 kB / 0.5554 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.8599, allocations: 68.62 kB / 0.5554 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002949/0.8629, allocations: 1.972 MB / 0.5573 GB, free: 120.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8629, allocations: 4.531 kB / 0.5573 GB, free: 120.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003511/0.8664, allocations: 0.9413 MB / 0.5583 GB, free: 120.5 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.007617/0.874, allocations: 6.29 MB / 0.5644 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009146/0.8832, allocations: 5.391 MB / 0.5697 GB, free: 115.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.8832, allocations: 8 kB / 0.5697 GB, free: 115.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/0.8867, allocations: 2.669 MB / 0.5723 GB, free: 114 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004355/0.8911, allocations: 0.8614 MB / 0.5731 GB, free: 113.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04673/0.9378, allocations: 39.66 MB / 0.6119 GB, free: 72.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002448/0.9403, allocations: 3.301 MB / 0.6151 GB, free: 68.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002407/0.9427, allocations: 0.758 MB / 0.6158 GB, free: 68.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/0.9447, allocations: 1.944 MB / 0.6177 GB, free: 66.11 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9447, allocations: 0 / 0.6177 GB, free: 66.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.46/1.405, allocations: 83.24 MB / 0.699 GB, free: 132.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/13.23, allocations: 5.531 kB / 0.699 GB, free: 132.6 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