Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001315, allocations: 108.9 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.8 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 47.33 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.0985, allocations: 49.45 MB / 350.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01974/0.1183, allocations: 20.02 MB / 370.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1966/0.315, allocations: 5.838 MB / 375.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004161/0.3192, allocations: 126.1 kB / 376.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00419/0.3234, allocations: 1.148 MB / 377.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00816/0.3316, allocations: 1.753 MB / 379 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.3349, allocations: 1.113 MB / 380.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01018/0.3451, allocations: 6.649 MB / 386.7 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006961/0.3521, allocations: 4.552 MB / 391.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005061/0.3572, allocations: 2.364 MB / 393.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006318/0.3635, allocations: 3.199 MB / 396.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.3653, allocations: 475.9 kB / 397.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003672/0.369, allocations: 0.7637 MB / 398.1 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.3708, allocations: 1.615 MB / 399.7 MB, free: 492 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005974/0.3768, allocations: 3.013 MB / 402.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009013/0.3859, allocations: 8.622 MB / 411.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3859, allocations: 0 / 411.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3859, allocations: 0 / 411.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003034/0.3862, allocations: 0 / 411.3 MB, free: 5.445 MB / 318.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.0208/0.407, allocations: 6.577 MB / 417.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.568e-05/0.4071, allocations: 8.031 kB / 417.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006669/0.4138, allocations: 1.012 MB / 418.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007561/0.4214, allocations: 3.433 MB / 422.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003817/0.4218, allocations: 394 kB / 422.7 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001408/0.4233, allocations: 0.5062 MB / 423.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.4374, allocations: 6.777 MB / 430 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001249/0.4375, allocations: 11.92 kB / 430 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000506/0.4381, allocations: 215.2 kB / 430.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002258/0.4383, allocations: 238.2 kB / 430.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.4494, allocations: 5.755 MB / 436.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04326/0.4927, allocations: 21.1 MB / 457.3 MB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00948/0.5022, allocations: 8.528 MB / 465.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004042/0.5063, allocations: 2.123 MB / 468 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/0.5189, allocations: 5.933 MB / 473.9 MB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.519, allocations: 60.48 kB / 474 MB, free: 5.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.017e-06/0.519, allocations: 0 / 474 MB, free: 5.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.0235/0.5425, allocations: 10.38 MB / 484.3 MB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.5426, allocations: 77.41 kB / 484.4 MB, free: 10.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005097/0.5477, allocations: 2.9 MB / 487.3 MB, free: 7.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003859/0.5481, allocations: 61.7 kB / 487.4 MB, free: 7.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/0.5499, allocations: 2.359 MB / 489.7 MB, free: 5.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000909/0.5508, allocations: 0.7631 MB / 490.5 MB, free: 4.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.552, allocations: 0.5138 MB / 491 MB, free: 3.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.5521, allocations: 313.1 kB / 491.3 MB, free: 3.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/0.5544, allocations: 1.267 MB / 492.6 MB, free: 2.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.5573, allocations: 2.175 MB / 494.8 MB, free: 15.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005397/0.5627, allocations: 3.672 MB / 498.4 MB, free: 11.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.397e-05/0.5627, allocations: 8 kB / 498.4 MB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008245/0.571, allocations: 4.449 MB / 0.4911 GB, free: 7.211 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.5711, allocations: 16 kB / 0.4911 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/0.5711, allocations: 32.53 kB / 0.4911 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/0.5725, allocations: 0.5126 MB / 0.4916 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/0.5754, allocations: 0.6902 MB / 0.4923 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009014/0.5844, allocations: 9.33 MB / 0.5014 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.5872, allocations: 171.7 kB / 0.5016 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005257/0.5877, allocations: 132 kB / 0.5017 GB, free: 11.64 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 (348): * Single equations (assignments): 341 * 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,3,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.00317/0.5909, allocations: 1.516 MB / 0.5032 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009257/0.5919, allocations: 320.1 kB / 0.5035 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00743/0.5993, allocations: 3.879 MB / 0.5073 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.5994, allocations: 20 kB / 0.5073 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.822e-05/0.5994, allocations: 12 kB / 0.5073 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.768e-05/0.5994, allocations: 11.97 kB / 0.5073 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/0.6163, allocations: 8.482 MB / 0.5156 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/0.6163, allocations: 4 kB / 0.5156 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/0.6181, allocations: 387.9 kB / 0.516 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/0.6202, allocations: 0.7197 MB / 0.5167 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002252/0.6204, allocations: 63.97 kB / 0.5168 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1993/0.8197, allocations: 15.22 MB / 0.5316 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.8198, allocations: 4.406 kB / 0.5316 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009755/0.8295, allocations: 5.551 MB / 0.537 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/0.8314, allocations: 0.6442 MB / 0.5377 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000885/0.8323, allocations: 61.78 kB / 0.5377 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.8343, allocations: 129.8 kB / 0.5379 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005086/0.8349, allocations: 173.5 kB / 0.538 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/0.8351, allocations: 63.45 kB / 0.5381 GB, free: 136.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004395/0.8395, allocations: 1.963 MB / 0.54 GB, free: 136.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8395, allocations: 0 / 0.54 GB, free: 136.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004289/0.8438, allocations: 0.9338 MB / 0.5409 GB, free: 136.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 (185): * Single equations (assignments): 177 * 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,3,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.0006878/0.8445, allocations: 257.7 kB / 0.5412 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006105/0.8506, allocations: 3.96 MB / 0.545 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.8507, allocations: 3.938 kB / 0.545 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003723/0.8544, allocations: 2.66 MB / 0.5476 GB, free: 132.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/0.8583, allocations: 0.807 MB / 0.5484 GB, free: 132.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/0.8733, allocations: 11.7 MB / 0.5598 GB, free: 125.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002557/0.8759, allocations: 3.209 MB / 0.563 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/0.877, allocations: 248.1 kB / 0.5632 GB, free: 124.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.877, allocations: 0 / 0.5632 GB, free: 124.3 MB / 446.1 MB Notification: Performance of Templates: time 0.3307/1.208, allocations: 250.5 MB / 0.8078 GB, free: 55.55 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches