Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001243/0.001243, allocations: 184.5 kB / 18.67 MB, free: 4.398 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 47.92 kB / 352 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2637, allocations: 49.43 MB / 401.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02533/0.2891, allocations: 24.12 MB / 425.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.3041, allocations: 7.12 MB / 432.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004823/0.309, allocations: 147.5 kB / 432.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005469/0.3145, allocations: 1.572 MB / 434.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008238/0.3228, allocations: 2.301 MB / 436.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004701/0.3275, allocations: 1.442 MB / 438.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.3395, allocations: 7.192 MB / 445.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01061/0.3501, allocations: 5.546 MB / 450.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00643/0.3566, allocations: 3.212 MB / 454.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007693/0.3643, allocations: 3.833 MB / 457.9 MB, free: 232 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003505/0.3679, allocations: 0.875 MB / 458.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00521/0.3731, allocations: 1.304 MB / 460.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003959/0.3771, allocations: 2.127 MB / 462.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008253/0.3854, allocations: 3.777 MB / 466 MB, free: 8.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.4035, allocations: 11.48 MB / 477.5 MB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.4035, allocations: 0 / 477.5 MB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4035, allocations: 0 / 477.5 MB, free: 12.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004791/0.404, allocations: 0 / 477.5 MB, free: 12.61 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0224/0.4264, allocations: 7.419 MB / 484.9 MB, free: 5.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.4265, allocations: 8.031 kB / 484.9 MB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005878/0.4324, allocations: 1.219 MB / 486.1 MB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009117/0.4415, allocations: 4.133 MB / 490.3 MB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003665/0.4419, allocations: 427.7 kB / 490.7 MB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/0.4433, allocations: 0.5624 MB / 491.2 MB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01387/0.4571, allocations: 7.276 MB / 498.5 MB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.4573, allocations: 15.78 kB / 498.5 MB, free: 7.332 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005133/0.4578, allocations: 232 kB / 498.8 MB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002557/0.4581, allocations: 267.3 kB / 499 MB, free: 6.844 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.4692, allocations: 6.123 MB / 0.4933 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04534/0.5146, allocations: 23.39 MB / 0.5161 GB, free: 8.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.5249, allocations: 8.71 MB / 0.5247 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004567/0.5295, allocations: 2.371 MB / 0.527 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01484/0.5444, allocations: 6.914 MB / 0.5337 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.157e-05/0.5445, allocations: 60.56 kB / 0.5338 GB, free: 5.438 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 7.093e-06/0.5445, allocations: 4 kB / 0.5338 GB, free: 5.434 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.2787/0.8232, allocations: 13.68 MB / 0.5471 GB, free: 124.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.8233, allocations: 89.06 kB / 0.5472 GB, free: 124.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004556/0.8279, allocations: 3.417 MB / 0.5506 GB, free: 123.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002979/0.8282, allocations: 73.05 kB / 0.5506 GB, free: 123.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.8296, allocations: 2.679 MB / 0.5533 GB, free: 121.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006669/0.8303, allocations: 0.9642 MB / 0.5542 GB, free: 120.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000816/0.8311, allocations: 0.6375 MB / 0.5548 GB, free: 120.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.29e-05/0.8312, allocations: 304.8 kB / 0.5551 GB, free: 119.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002144/0.8333, allocations: 1.546 MB / 0.5566 GB, free: 119.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002499/0.8358, allocations: 2.759 MB / 0.5593 GB, free: 117.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004941/0.8408, allocations: 4.601 MB / 0.5638 GB, free: 114.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.41e-05/0.8409, allocations: 14.48 kB / 0.5638 GB, free: 114.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008658/0.8495, allocations: 5.462 MB / 0.5692 GB, free: 109.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/0.8496, allocations: 24.03 kB / 0.5692 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-05/0.8497, allocations: 43.94 kB / 0.5692 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.8511, allocations: 0.6656 MB / 0.5699 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/0.8539, allocations: 0.858 MB / 0.5707 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008163/0.862, allocations: 10.33 MB / 0.5808 GB, free: 97.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/0.8655, allocations: 223.9 kB / 0.581 GB, free: 97.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003508/0.8659, allocations: 175.8 kB / 0.5812 GB, free: 97.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002772/0.8686, allocations: 1.627 MB / 0.5828 GB, free: 95.42 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000884/0.8695, allocations: 383.3 kB / 0.5831 GB, free: 95.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006281/0.8758, allocations: 4.498 MB / 0.5875 GB, free: 90.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-05/0.8759, allocations: 36 kB / 0.5876 GB, free: 90.39 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.8759, allocations: 8 kB / 0.5876 GB, free: 90.38 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/0.8759, allocations: 15.94 kB / 0.5876 GB, free: 90.36 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.8898, allocations: 9.886 MB / 0.5972 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.8899, allocations: 4 kB / 0.5972 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/0.8918, allocations: 0.496 MB / 0.5977 GB, free: 79.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.8934, allocations: 0.7301 MB / 0.5984 GB, free: 79.06 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002165/0.8936, allocations: 71.97 kB / 0.5985 GB, free: 78.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009516/0.9031, allocations: 14.11 MB / 0.6123 GB, free: 64.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.9032, allocations: 11.94 kB / 0.6123 GB, free: 64.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00893/0.9121, allocations: 6.588 MB / 0.6187 GB, free: 57.22 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/0.9141, allocations: 0.7735 MB / 0.6195 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007636/0.9149, allocations: 71.34 kB / 0.6195 GB, free: 56.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002109/0.917, allocations: 159.8 kB / 0.6197 GB, free: 56.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004369/0.9175, allocations: 205.8 kB / 0.6199 GB, free: 56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.9176, allocations: 83.92 kB / 0.62 GB, free: 55.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.9207, allocations: 2.31 MB / 0.6222 GB, free: 53.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.9207, allocations: 0 / 0.6222 GB, free: 53.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004302/0.9251, allocations: 1.092 MB / 0.6233 GB, free: 52.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006619/0.9257, allocations: 287.6 kB / 0.6236 GB, free: 52.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006478/0.9322, allocations: 4.7 MB / 0.6282 GB, free: 47.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.9323, allocations: 0 / 0.6282 GB, free: 47.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003786/0.9361, allocations: 2.84 MB / 0.6309 GB, free: 44.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004022/0.9401, allocations: 0.9037 MB / 0.6318 GB, free: 43.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.9562, allocations: 10.44 MB / 0.642 GB, free: 33.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002491/0.9588, allocations: 3.428 MB / 0.6454 GB, free: 29.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/0.9601, allocations: 287.4 kB / 0.6456 GB, free: 29.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.9601, allocations: 0 / 0.6456 GB, free: 29.38 MB / 462.1 MB Notification: Performance of Templates: time 0.4159/1.376, allocations: 240.6 MB / 0.8806 GB, free: 45.98 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches