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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001351/0.001351, allocations: 103.5 kB / 17.2 MB, free: 6.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 205.8 kB / 18.13 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.3 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 58.53 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09313, allocations: 50.54 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1758/0.269, allocations: 20.64 MB / 377.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.2807, allocations: 6.121 MB / 383.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00408/0.2848, allocations: 131.4 kB / 383.7 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004054/0.2889, allocations: 1.162 MB / 384.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006725/0.2956, allocations: 1.718 MB / 386.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003504/0.2992, allocations: 1.175 MB / 387.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01126/0.3104, allocations: 6.745 MB / 394.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00655/0.317, allocations: 4.558 MB / 399.1 MB, free: 136 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004464/0.3215, allocations: 2.377 MB / 401.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.3268, allocations: 3.206 MB / 404.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.3282, allocations: 483.5 kB / 405.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003003/0.3313, allocations: 0.7809 MB / 405.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001602/0.3329, allocations: 1.612 MB / 407.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004261/0.3372, allocations: 3.021 MB / 410.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009795/0.347, allocations: 10.02 MB / 420.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.347, allocations: 0 / 420.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.347, allocations: 0 / 420.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.00036/0.3474, allocations: 0 / 420.5 MB, free: 13.02 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.01539/0.3628, allocations: 6.62 MB / 427.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3628, allocations: 11.97 kB / 427.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004798/0.3677, allocations: 1.017 MB / 428.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006368/0.374, allocations: 3.447 MB / 431.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003316/0.3744, allocations: 395 kB / 432 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009807/0.3754, allocations: 0.5037 MB / 432.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.3867, allocations: 6.775 MB / 439.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.986e-05/0.3868, allocations: 15.83 kB / 439.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004586/0.3873, allocations: 212 kB / 439.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002055/0.3875, allocations: 242.2 kB / 439.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.3979, allocations: 5.752 MB / 445.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03453/0.4324, allocations: 21.17 MB / 466.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008686/0.4411, allocations: 8.812 MB / 475.5 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003817/0.445, allocations: 2.218 MB / 477.7 MB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.4568, allocations: 6.222 MB / 483.9 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.4569, allocations: 60.56 kB / 484 MB, free: 11.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.426e-06/0.4569, allocations: 3.938 kB / 484 MB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02243/0.4793, allocations: 10.42 MB / 494.4 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.4794, allocations: 73.41 kB / 494.5 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005693/0.4851, allocations: 2.925 MB / 497.4 MB, free: 13.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003542/0.4855, allocations: 65.7 kB / 497.5 MB, free: 13.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/0.4872, allocations: 2.369 MB / 499.9 MB, free: 11.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007671/0.488, allocations: 0.7663 MB / 0.4889 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000819/0.4888, allocations: 0.5138 MB / 0.4894 GB, free: 10.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.4889, allocations: 305.1 kB / 0.4897 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.491, allocations: 1.267 MB / 0.4909 GB, free: 8.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002603/0.4936, allocations: 2.179 MB / 0.493 GB, free: 5.973 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00474/0.4983, allocations: 3.672 MB / 0.4966 GB, free: 1.906 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.4984, allocations: 8 kB / 0.4966 GB, free: 1.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007292/0.5057, allocations: 4.458 MB / 0.501 GB, free: 13.37 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.5057, allocations: 16 kB / 0.501 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/0.5058, allocations: 28 kB / 0.501 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.507, allocations: 0.5411 MB / 0.5016 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/0.5095, allocations: 0.6825 MB / 0.5022 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008338/0.5179, allocations: 9.484 MB / 0.5115 GB, free: 1.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/0.5206, allocations: 179.7 kB / 0.5117 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002578/0.5209, allocations: 128 kB / 0.5118 GB, free: 1.625 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.002627/0.5235, allocations: 1.516 MB / 0.5133 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007047/0.5242, allocations: 320.1 kB / 0.5136 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006804/0.531, allocations: 3.903 MB / 0.5174 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/0.5311, allocations: 24 kB / 0.5174 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.5311, allocations: 8 kB / 0.5174 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.5311, allocations: 15.95 kB / 0.5174 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/0.5459, allocations: 8.522 MB / 0.5258 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.5459, allocations: 4 kB / 0.5258 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.5476, allocations: 379.4 kB / 0.5261 GB, free: 2.648 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/0.5496, allocations: 0.7475 MB / 0.5268 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.5498, allocations: 63.97 kB / 0.5269 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.187/0.7369, allocations: 15.34 MB / 0.5419 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/0.7369, allocations: 8.859 kB / 0.5419 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/0.747, allocations: 5.572 MB / 0.5473 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/0.7486, allocations: 0.6502 MB / 0.548 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004133/0.749, allocations: 52.59 kB / 0.548 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.7505, allocations: 131.5 kB / 0.5481 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005155/0.751, allocations: 170.8 kB / 0.5483 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.7512, allocations: 67.14 kB / 0.5484 GB, free: 125 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003276/0.7545, allocations: 1.974 MB / 0.5503 GB, free: 124.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7545, allocations: 0 / 0.5503 GB, free: 124.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003759/0.7583, allocations: 0.9521 MB / 0.5512 GB, free: 124.1 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.0006643/0.7589, allocations: 266.7 kB / 0.5515 GB, free: 124 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006498/0.7654, allocations: 3.962 MB / 0.5554 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7655, allocations: 1.281 kB / 0.5554 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003696/0.7692, allocations: 2.671 MB / 0.558 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004284/0.7735, allocations: 0.8168 MB / 0.5588 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.7874, allocations: 11.73 MB / 0.5702 GB, free: 113.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002293/0.7897, allocations: 3.309 MB / 0.5735 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002318/0.792, allocations: 0.7578 MB / 0.5742 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000577/0.7926, allocations: 221.2 kB / 0.5744 GB, free: 112.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.7926, allocations: 3.938 kB / 0.5744 GB, free: 112.1 MB / 446.1 MB Notification: Performance of Templates: time 0.06549/0.8581, allocations: 45.92 MB / 0.6193 GB, free: 67.74 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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/jenkins/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