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.001123/0.001123, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 60.22 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.117, 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.2318/0.3489, allocations: 20.92 MB / 379.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.3609, allocations: 6.185 MB / 386 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004154/0.3651, allocations: 134.2 kB / 386.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.369, allocations: 1.37 MB / 387.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00676/0.3759, allocations: 1.899 MB / 389.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003834/0.3797, allocations: 1.264 MB / 390.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.3912, allocations: 6.172 MB / 396.9 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007925/0.3992, allocations: 5.444 MB / 402.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004563/0.4038, allocations: 2.841 MB / 405.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005165/0.4089, allocations: 3.512 MB / 408.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.4102, allocations: 0.7812 MB / 409.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.4126, allocations: 1.085 MB / 410.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.4141, allocations: 1.944 MB / 412.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003746/0.4179, allocations: 3.364 MB / 415.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009321/0.4272, allocations: 10.35 MB / 426.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4273, allocations: 0 / 426.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4273, allocations: 0 / 426.2 MB, free: 8.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002239/0.4275, allocations: 0 / 426.2 MB, free: 8.426 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.0152/0.4427, allocations: 6.624 MB / 432.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.4428, allocations: 8.031 kB / 432.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004686/0.4474, allocations: 1.017 MB / 433.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008388/0.4559, allocations: 3.583 MB / 437.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003853/0.4563, allocations: 386.6 kB / 437.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001801/0.4581, allocations: 0.5081 MB / 438.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.4717, allocations: 6.783 MB / 445.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.4719, allocations: 7.906 kB / 445.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004625/0.4724, allocations: 212 kB / 445.3 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/0.4726, allocations: 242.2 kB / 445.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009492/0.4821, allocations: 5.748 MB / 451.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02921/0.5113, allocations: 20.92 MB / 472.2 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009201/0.5206, allocations: 8.816 MB / 481 MB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003868/0.5245, allocations: 2.225 MB / 483.2 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01046/0.535, allocations: 6.183 MB / 489.4 MB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.5351, allocations: 60.44 kB / 489.5 MB, free: 7.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 3.807e-06/0.5351, allocations: 0 / 489.5 MB, free: 7.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.01902/0.5541, allocations: 10.41 MB / 499.9 MB, free: 12.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.5542, allocations: 81.41 kB / 500 MB, free: 12.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003837/0.558, allocations: 2.921 MB / 0.4911 GB, free: 9.453 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.5582, allocations: 61.7 kB / 0.4912 GB, free: 9.387 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/0.5597, allocations: 2.373 MB / 0.4935 GB, free: 6.988 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005515/0.5603, allocations: 0.7664 MB / 0.4942 GB, free: 6.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007422/0.561, allocations: 0.5099 MB / 0.4947 GB, free: 5.691 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.5611, allocations: 305.1 kB / 0.495 GB, free: 5.391 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/0.5631, allocations: 1.275 MB / 0.4963 GB, free: 4.113 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00249/0.5656, allocations: 2.175 MB / 0.4984 GB, free: 1.539 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0046/0.5702, allocations: 3.668 MB / 0.502 GB, free: 13.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.5702, allocations: 8 kB / 0.502 GB, free: 13.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006877/0.5771, allocations: 4.466 MB / 0.5063 GB, free: 8.934 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.5771, allocations: 16 kB / 0.5064 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.946e-05/0.5772, allocations: 28.53 kB / 0.5064 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.5784, allocations: 0.5406 MB / 0.5069 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002447/0.5808, allocations: 0.6824 MB / 0.5076 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009186/0.59, allocations: 10.34 MB / 0.5177 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/0.5928, allocations: 175.7 kB / 0.5178 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003345/0.5932, allocations: 132 kB / 0.518 GB, free: 12.31 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.002881/0.596, allocations: 1.52 MB / 0.5195 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000793/0.5968, allocations: 320.1 kB / 0.5198 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006481/0.6033, allocations: 3.899 MB / 0.5236 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.6034, allocations: 27.94 kB / 0.5236 GB, free: 6.438 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.44e-05/0.6034, allocations: 8 kB / 0.5236 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.6034, allocations: 11.95 kB / 0.5236 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1965/0.8, allocations: 8.508 MB / 0.5319 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/0.8, allocations: 4.547 kB / 0.5319 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/0.802, allocations: 375.1 kB / 0.5323 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.8041, allocations: 0.7462 MB / 0.533 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003387/0.8045, allocations: 62.02 kB / 0.5331 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01421/0.8187, allocations: 16.76 MB / 0.5494 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.8188, allocations: 7.281 kB / 0.5494 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00978/0.8286, allocations: 5.57 MB / 0.5549 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/0.8304, allocations: 0.6541 MB / 0.5555 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005516/0.831, allocations: 53.7 kB / 0.5556 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.8326, allocations: 135.3 kB / 0.5557 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004794/0.833, allocations: 168.6 kB / 0.5559 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.8332, allocations: 65.08 kB / 0.5559 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003189/0.8364, allocations: 1.978 MB / 0.5579 GB, free: 120.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8364, allocations: 0 / 0.5579 GB, free: 120.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003845/0.8403, allocations: 0.9377 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.000653/0.841, allocations: 261.5 kB / 0.559 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005744/0.8467, allocations: 3.978 MB / 0.5629 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.8468, allocations: 10.59 kB / 0.5629 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/0.8504, allocations: 2.666 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.003966/0.8544, allocations: 0.864 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.01513/0.8695, allocations: 9.478 MB / 0.5756 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003193/0.8728, allocations: 3.304 MB / 0.5788 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002376/0.8752, allocations: 0.7547 MB / 0.5796 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006226/0.8758, allocations: 225.4 kB / 0.5798 GB, free: 109 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8758, allocations: 0 / 0.5798 GB, free: 109 MB / 446.1 MB Notification: Performance of Templates: time 0.06458/0.9404, allocations: 44.64 MB / 0.6234 GB, free: 65.25 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 cvode -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