Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009278/0.000928, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000992/0.0009921, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.0004088, allocations: 11.98 kB / 308.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1196, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.2814/0.401, allocations: 16.28 MB / 376.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.4156, allocations: 5.536 MB / 381.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00507/0.4207, allocations: 98.09 kB / 381.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00549/0.4263, allocations: 1.103 MB / 382.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00837/0.4347, allocations: 1.433 MB / 384.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004191/0.4389, allocations: 1.005 MB / 385.4 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.4506, allocations: 5.402 MB / 390.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007558/0.4582, allocations: 3.632 MB / 394.4 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005048/0.4633, allocations: 1.606 MB / 396 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005836/0.4692, allocations: 2.133 MB / 398.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001927/0.4711, allocations: 251.5 kB / 398.4 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004103/0.4753, allocations: 0.5 MB / 398.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.4772, allocations: 1.001 MB / 399.9 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005581/0.4828, allocations: 2.182 MB / 402.1 MB, free: 132 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.4935, allocations: 6.637 MB / 408.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4935, allocations: 3.938 kB / 408.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.879e-06/0.4935, allocations: 0 / 408.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000397/0.4939, allocations: 0 / 408.7 MB, free: 10.62 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01718/0.5111, allocations: 4.592 MB / 413.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.5112, allocations: 12.03 kB / 413.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007069/0.5183, allocations: 1.033 MB / 414.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009406/0.5277, allocations: 2.848 MB / 417.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004914/0.5283, allocations: 308.4 kB / 417.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002003/0.5303, allocations: 403.3 kB / 417.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01905/0.5494, allocations: 5.231 MB / 423.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000252/0.5496, allocations: 4 kB / 423.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001429/0.5511, allocations: 162.7 kB / 423.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000244/0.5514, allocations: 176 kB / 423.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01313/0.5645, allocations: 4.498 MB / 428 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.037/0.6015, allocations: 17.03 MB / 445 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/0.6116, allocations: 8.721 MB / 453.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00447/0.6161, allocations: 2.037 MB / 455.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.6278, allocations: 5.816 MB / 461.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/0.6279, allocations: 51.81 kB / 461.6 MB, free: 3.824 MB / 366.1 MB Notification: Performance of pre-optimization done (n=157): time 4.228e-06/0.6279, allocations: 0 / 461.6 MB, free: 3.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=160): time 0.01462/0.6425, allocations: 6.42 MB / 468 MB, free: 13.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.6426, allocations: 76.58 kB / 468.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004854/0.6475, allocations: 2.335 MB / 470.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002533/0.6477, allocations: 57.7 kB / 470.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.6493, allocations: 1.858 MB / 472.4 MB, free: 8.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/0.6499, allocations: 0.547 MB / 472.9 MB, free: 8.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000365/0.6503, allocations: 178 kB / 473.1 MB, free: 8.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.6504, allocations: 301.1 kB / 473.4 MB, free: 7.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/0.6522, allocations: 0.8787 MB / 474.3 MB, free: 6.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.6545, allocations: 1.586 MB / 475.8 MB, free: 5.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004034/0.6585, allocations: 2.621 MB / 478.5 MB, free: 2.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-05/0.6586, allocations: 4 kB / 478.5 MB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005788/0.6644, allocations: 3.005 MB / 481.5 MB, free: 15.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.6644, allocations: 20.52 kB / 481.5 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/0.6645, allocations: 28 kB / 481.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000459/0.6649, allocations: 177.5 kB / 481.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.667, allocations: 0.5421 MB / 482.2 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/0.6695, allocations: 2.261 MB / 484.5 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.6716, allocations: 119.9 kB / 484.6 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002595/0.6719, allocations: 96 kB / 484.7 MB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002637/0.6746, allocations: 1.196 MB / 485.9 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006812/0.6753, allocations: 252.9 kB / 486.2 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005109/0.6804, allocations: 2.586 MB / 488.7 MB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.6804, allocations: 16 kB / 488.8 MB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.237e-05/0.6804, allocations: 4 kB / 488.8 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.6805, allocations: 7.969 kB / 488.8 MB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/0.6925, allocations: 5.968 MB / 494.7 MB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.6926, allocations: 0 / 494.7 MB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.6939, allocations: 295.8 kB / 495 MB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.695, allocations: 382.2 kB / 495.4 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.6952, allocations: 39.98 kB / 495.4 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007742/0.703, allocations: 6.829 MB / 0.4905 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.703, allocations: 4.031 kB / 0.4905 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006778/0.7098, allocations: 3.715 MB / 0.4941 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.7114, allocations: 0.5057 MB / 0.4946 GB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007918/0.7122, allocations: 36 kB / 0.4947 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.714, allocations: 91.92 kB / 0.4947 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/0.7143, allocations: 117.1 kB / 0.4949 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.7145, allocations: 43.94 kB / 0.4949 GB, free: 4.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00349/0.718, allocations: 1.596 MB / 0.4965 GB, free: 3.352 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.718, allocations: 0 / 0.4965 GB, free: 3.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003355/0.7214, allocations: 0.6836 MB / 0.4971 GB, free: 2.668 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005666/0.7219, allocations: 178 kB / 0.4973 GB, free: 2.488 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.7264, allocations: 2.347 MB / 0.4996 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.7264, allocations: 1 kB / 0.4996 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.7291, allocations: 1.499 MB / 0.501 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004691/0.7338, allocations: 0.5872 MB / 0.5016 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/0.7503, allocations: 8.799 MB / 0.5102 GB, free: 5.141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003699/0.754, allocations: 2.612 MB / 0.5128 GB, free: 2.508 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009703/0.755, allocations: 179.4 kB / 0.5129 GB, free: 2.336 MB / 430.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7551, allocations: 3.938 kB / 0.5129 GB, free: 2.332 MB / 430.1 MB Notification: Performance of Templates: time 0.2969/1.052, allocations: 95.41 MB / 0.6061 GB, free: 83.02 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches