Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001326/0.001326, allocations: 179.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.21/2.21, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007625/0.0007625, allocations: 95.8 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002598, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 47.57 MB / 374.6 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01409/0.211, allocations: 17.85 MB / 392.4 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00936/0.2204, allocations: 5.587 MB / 398 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/0.2228, allocations: 107.5 kB / 398.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.2249, allocations: 0.9899 MB / 399.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003247/0.2281, allocations: 1.577 MB / 400.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.2298, allocations: 0.8342 MB / 401.5 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004375/0.2342, allocations: 6.157 MB / 407.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003069/0.2373, allocations: 3.57 MB / 411.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.2393, allocations: 1.996 MB / 413.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002102/0.2414, allocations: 2.661 MB / 415.9 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004473/0.2419, allocations: 324 kB / 416.2 MB, free: 7.031 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.2431, allocations: 0.5544 MB / 416.8 MB, free: 6.477 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007917/0.2439, allocations: 1.378 MB / 418.1 MB, free: 5.094 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007297/0.2446, allocations: 1.128 MB / 419.3 MB, free: 3.957 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.2506, allocations: 8.368 MB / 427.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2506, allocations: 0 / 427.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2506, allocations: 0 / 427.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001995/0.2508, allocations: 0 / 427.6 MB, free: 11.57 MB / 314.7 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.01161/0.2624, allocations: 5.584 MB / 433.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2625, allocations: 8.031 kB / 433.2 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004118/0.2666, allocations: 1.016 MB / 434.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00516/0.2718, allocations: 3.178 MB / 437.4 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.2721, allocations: 402.2 kB / 437.8 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006628/0.2728, allocations: 0.5077 MB / 438.3 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.2834, allocations: 6.744 MB / 445.1 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.541e-05/0.2835, allocations: 11.84 kB / 445.1 MB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004493/0.284, allocations: 216 kB / 445.3 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002146/0.2842, allocations: 242.2 kB / 445.5 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009469/0.2937, allocations: 5.728 MB / 451.2 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02993/0.3236, allocations: 21.19 MB / 472.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007973/0.3316, allocations: 8.55 MB / 481 MB, free: 4.516 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003206/0.3349, allocations: 2.124 MB / 483.1 MB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009963/0.3448, allocations: 5.964 MB / 489.1 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.3449, allocations: 52.56 kB / 489.1 MB, free: 12.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 3.166e-06/0.3449, allocations: 0 / 489.1 MB, free: 12.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.01949/0.3644, allocations: 10.4 MB / 499.5 MB, free: 1.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.3645, allocations: 73.41 kB / 499.6 MB, free: 1.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1688/0.5333, allocations: 2.878 MB / 0.4907 GB, free: 103.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004146/0.5338, allocations: 61.77 kB / 0.4908 GB, free: 103.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.5349, allocations: 2.357 MB / 0.4931 GB, free: 102.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000554/0.5355, allocations: 0.7648 MB / 0.4938 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.5356, allocations: 64.84 kB / 0.4939 GB, free: 101.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5358, allocations: 423.3 kB / 0.4943 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/0.5381, allocations: 1.27 MB / 0.4955 GB, free: 100.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.5404, allocations: 2.176 MB / 0.4976 GB, free: 99.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.5428, allocations: 1.65 MB / 0.4993 GB, free: 98.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/0.5429, allocations: 8.75 kB / 0.4993 GB, free: 98.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006965/0.5498, allocations: 4.455 MB / 0.5036 GB, free: 96.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.5499, allocations: 17.81 kB / 0.5036 GB, free: 96.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/0.5499, allocations: 28.88 kB / 0.5037 GB, free: 96.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.5509, allocations: 0.5208 MB / 0.5042 GB, free: 96.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002283/0.5532, allocations: 0.7002 MB / 0.5048 GB, free: 96.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005906/0.5592, allocations: 9.331 MB / 0.514 GB, free: 88.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002137/0.5613, allocations: 178 kB / 0.5141 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.5615, allocations: 129.2 kB / 0.5143 GB, free: 88.43 MB / 378.7 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002266/0.5638, allocations: 1.519 MB / 0.5157 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004362/0.5642, allocations: 313.2 kB / 0.516 GB, free: 87.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005116/0.5693, allocations: 3.901 MB / 0.5198 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.5693, allocations: 20 kB / 0.5199 GB, free: 84.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5694, allocations: 8 kB / 0.5199 GB, free: 84.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.5694, allocations: 15.95 kB / 0.5199 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.5797, allocations: 8.503 MB / 0.5282 GB, free: 75.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.5797, allocations: 4 kB / 0.5282 GB, free: 75.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/0.5812, allocations: 392 kB / 0.5286 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.5828, allocations: 0.7117 MB / 0.5293 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.583, allocations: 63.97 kB / 0.5293 GB, free: 74.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009692/0.5927, allocations: 15.2 MB / 0.5442 GB, free: 58.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.5927, allocations: 7.984 kB / 0.5442 GB, free: 58.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007227/0.6, allocations: 5.574 MB / 0.5496 GB, free: 52.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.6013, allocations: 0.6571 MB / 0.5503 GB, free: 51.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003593/0.6017, allocations: 59.98 kB / 0.5503 GB, free: 51.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/0.6032, allocations: 143.9 kB / 0.5505 GB, free: 51.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/0.6035, allocations: 169.7 kB / 0.5506 GB, free: 51.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6036, allocations: 59.98 kB / 0.5507 GB, free: 51.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002385/0.606, allocations: 1.948 MB / 0.5526 GB, free: 49.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.606, allocations: 4 kB / 0.5526 GB, free: 49.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00291/0.609, allocations: 0.9362 MB / 0.5535 GB, free: 48.41 MB / 378.7 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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004548/0.6094, allocations: 209.1 kB / 0.5537 GB, free: 48.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.6145, allocations: 3.963 MB / 0.5576 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6145, allocations: 6.078 kB / 0.5576 GB, free: 44.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003139/0.6176, allocations: 2.664 MB / 0.5602 GB, free: 41.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/0.621, allocations: 0.8115 MB / 0.561 GB, free: 40.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.6336, allocations: 11.42 MB / 0.5721 GB, free: 29.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/0.6358, allocations: 3.219 MB / 0.5753 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008909/0.6367, allocations: 243.4 kB / 0.5755 GB, free: 25.6 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.6367, allocations: 0 / 0.5755 GB, free: 25.6 MB / 378.7 MB Notification: Performance of Templates: time 0.5239/1.161, allocations: 249.8 MB / 0.8194 GB, free: 153 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches