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.001077/0.001077, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 59.28 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.08494, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.1804/0.2653, allocations: 20.92 MB / 379.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.2772, allocations: 6.185 MB / 386 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004439/0.2817, allocations: 134.1 kB / 386.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.2862, allocations: 1.368 MB / 387.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006948/0.2932, allocations: 1.901 MB / 389.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003726/0.2969, allocations: 1.268 MB / 390.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008233/0.3052, allocations: 6.163 MB / 396.8 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006702/0.3119, allocations: 5.459 MB / 402.3 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004276/0.3162, allocations: 2.84 MB / 405.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0054/0.3216, allocations: 3.501 MB / 408.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001719/0.3234, allocations: 0.7812 MB / 409.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003355/0.3267, allocations: 1.089 MB / 410.5 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.329, allocations: 1.94 MB / 412.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005626/0.3346, allocations: 3.368 MB / 415.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.3454, allocations: 10.34 MB / 426.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3455, allocations: 8 kB / 426.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3455, allocations: 0 / 426.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.3457, allocations: 0 / 426.2 MB, free: 8.391 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.01632/0.3621, allocations: 6.623 MB / 432.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3621, allocations: 8.031 kB / 432.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004702/0.3668, allocations: 1.017 MB / 433.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007236/0.3741, allocations: 3.587 MB / 437.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002879/0.3744, allocations: 386.6 kB / 437.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.3754, allocations: 0.5041 MB / 438.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01157/0.387, allocations: 6.775 MB / 445.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.3872, allocations: 15.84 kB / 445.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004528/0.3876, allocations: 212 kB / 445.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000205/0.3878, allocations: 246.2 kB / 445.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01091/0.3988, allocations: 5.748 MB / 451.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03485/0.4336, allocations: 20.92 MB / 472.2 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008098/0.4418, allocations: 8.808 MB / 481 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/0.4453, allocations: 2.222 MB / 483.2 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.456, allocations: 6.183 MB / 489.4 MB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.4561, allocations: 68.44 kB / 489.5 MB, free: 7.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.346e-06/0.4561, allocations: 0 / 489.5 MB, free: 7.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.01997/0.4761, allocations: 10.41 MB / 499.9 MB, free: 12.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.4761, allocations: 77.41 kB / 500 MB, free: 12.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.4803, allocations: 2.921 MB / 0.4911 GB, free: 9.418 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002635/0.4806, allocations: 69.7 kB / 0.4912 GB, free: 9.344 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.4821, allocations: 2.373 MB / 0.4935 GB, free: 6.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/0.4827, allocations: 0.7664 MB / 0.4942 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007649/0.4835, allocations: 0.5138 MB / 0.4947 GB, free: 5.648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.889e-05/0.4836, allocations: 305.1 kB / 0.495 GB, free: 5.348 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.4856, allocations: 1.271 MB / 0.4963 GB, free: 4.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002536/0.4882, allocations: 2.171 MB / 0.4984 GB, free: 1.504 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004747/0.4929, allocations: 3.672 MB / 0.502 GB, free: 13.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-05/0.493, allocations: 12 kB / 0.502 GB, free: 13.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007123/0.5001, allocations: 4.462 MB / 0.5063 GB, free: 8.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.5002, allocations: 16 kB / 0.5064 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.836e-05/0.5002, allocations: 28 kB / 0.5064 GB, free: 8.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.5014, allocations: 0.5372 MB / 0.5069 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/0.504, allocations: 0.6864 MB / 0.5076 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008697/0.5127, allocations: 10.34 MB / 0.5177 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/0.5152, allocations: 171.7 kB / 0.5178 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.5156, allocations: 136 kB / 0.518 GB, free: 12.28 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.00263/0.5182, allocations: 1.52 MB / 0.5194 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006958/0.5189, allocations: 320.1 kB / 0.5197 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00641/0.5253, allocations: 3.903 MB / 0.5236 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.872e-05/0.5254, allocations: 27.98 kB / 0.5236 GB, free: 6.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.5254, allocations: 8 kB / 0.5236 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.14e-05/0.5254, allocations: 11.95 kB / 0.5236 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1811/0.7066, allocations: 8.508 MB / 0.5319 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.7066, allocations: 6.203 kB / 0.5319 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/0.7084, allocations: 372.4 kB / 0.5323 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.7103, allocations: 0.7395 MB / 0.533 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.7106, allocations: 61.67 kB / 0.5331 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/0.723, allocations: 16.76 MB / 0.5494 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.7231, allocations: 8.594 kB / 0.5494 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008525/0.7316, allocations: 5.573 MB / 0.5549 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/0.7333, allocations: 0.6472 MB / 0.5555 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004826/0.7338, allocations: 52.89 kB / 0.5556 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.7353, allocations: 135.7 kB / 0.5557 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/0.7357, allocations: 172.9 kB / 0.5559 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.7359, allocations: 60.11 kB / 0.5559 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002656/0.7385, allocations: 1.98 MB / 0.5578 GB, free: 120.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7385, allocations: 3.938 kB / 0.5578 GB, free: 120.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00307/0.7416, allocations: 0.9375 MB / 0.5588 GB, free: 120.6 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.0004885/0.7421, allocations: 259.8 kB / 0.559 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005116/0.7472, allocations: 3.98 MB / 0.5629 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.341e-06/0.7473, allocations: 1.781 kB / 0.5629 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.7505, allocations: 2.673 MB / 0.5655 GB, free: 117 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003369/0.7539, allocations: 0.8665 MB / 0.5664 GB, free: 116.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.7663, allocations: 9.471 MB / 0.5756 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/0.7688, allocations: 3.302 MB / 0.5788 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002074/0.7708, allocations: 0.7599 MB / 0.5796 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/0.7714, allocations: 227.8 kB / 0.5798 GB, free: 108.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7714, allocations: 0 / 0.5798 GB, free: 108.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06186/0.8332, allocations: 44.64 MB / 0.6234 GB, free: 65.19 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 -s gbode -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/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