Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|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|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|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|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001511/0.001511, allocations: 202 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 245.4 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007553/0.0007553, allocations: 94.62 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002007, allocations: 4 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1818, allocations: 51.28 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2597/0.4416, allocations: 123.7 MB / 0.5198 GB, free: 93.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.4419, allocations: 99.62 kB / 0.5199 GB, free: 93.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2043/0.6463, allocations: 105.7 MB / 0.6232 GB, free: 3.352 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.6463, allocations: 0 / 0.6232 GB, free: 3.352 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002866/0.6466, allocations: 95.94 kB / 0.6233 GB, free: 3.258 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.01156/0.6582, allocations: 4.712 MB / 0.6279 GB, free: 14.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.6582, allocations: 12.03 kB / 0.6279 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004878/0.6631, allocations: 0.9671 MB / 0.6288 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007326/0.6705, allocations: 3.419 MB / 0.6322 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.6709, allocations: 487 kB / 0.6326 GB, free: 9.449 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000785/0.6717, allocations: 408.3 kB / 0.633 GB, free: 9.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00873/0.6804, allocations: 5.341 MB / 0.6382 GB, free: 3.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-05/0.6805, allocations: 4 kB / 0.6382 GB, free: 3.516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003892/0.6809, allocations: 180 kB / 0.6384 GB, free: 3.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001403/0.681, allocations: 168.2 kB / 0.6386 GB, free: 3.172 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007543/0.6886, allocations: 4.334 MB / 0.6428 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02881/0.7174, allocations: 18.01 MB / 0.6604 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007709/0.7252, allocations: 8.521 MB / 0.6687 GB, free: 2.801 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00384/0.7291, allocations: 2.233 MB / 0.6709 GB, free: 0.5664 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2055/0.9346, allocations: 6.288 MB / 0.677 GB, free: 70.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001609/0.9362, allocations: 1.285 MB / 0.6783 GB, free: 69.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=182): time 5.16e-06/0.9362, allocations: 0 / 0.6783 GB, free: 69.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=214): time 0.01559/0.9518, allocations: 8.695 MB / 0.6868 GB, free: 68.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.952, allocations: 340.9 kB / 0.6871 GB, free: 68.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003624/0.9556, allocations: 2.462 MB / 0.6895 GB, free: 68.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003432/0.956, allocations: 69.33 kB / 0.6896 GB, free: 68.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.9574, allocations: 1.94 MB / 0.6915 GB, free: 67.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005984/0.958, allocations: 0.7185 MB / 0.6922 GB, free: 67.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.9582, allocations: 51.47 kB / 0.6922 GB, free: 67.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.9583, allocations: 408.4 kB / 0.6926 GB, free: 66.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.96, allocations: 1.113 MB / 0.6937 GB, free: 66.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.9618, allocations: 1.885 MB / 0.6955 GB, free: 66.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003455/0.9653, allocations: 2.996 MB / 0.6985 GB, free: 65.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.441e-05/0.9653, allocations: 10.12 kB / 0.6985 GB, free: 65.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=329) (initialization): time 0.005785/0.9711, allocations: 4.054 MB / 0.7024 GB, free: 64.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003046/0.9714, allocations: 0.6786 MB / 0.7031 GB, free: 64.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.9715, allocations: 18.38 kB / 0.7031 GB, free: 64.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/0.9742, allocations: 1.01 MB / 0.7041 GB, free: 64.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.9759, allocations: 482.1 kB / 0.7046 GB, free: 64.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.9873, allocations: 15.19 MB / 0.7194 GB, free: 54.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002645/0.99, allocations: 174.1 kB / 0.7196 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/0.9903, allocations: 107.9 kB / 0.7197 GB, free: 54.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.9903, allocations: 10.84 kB / 0.7197 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005297/0.9956, allocations: 3.751 MB / 0.7233 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.9956, allocations: 25.55 kB / 0.7234 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.9977, allocations: 0.9878 MB / 0.7243 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.9993, allocations: 481.4 kB / 0.7248 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/1.011, allocations: 15.16 MB / 0.7396 GB, free: 42.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002484/1.013, allocations: 166 kB / 0.7397 GB, free: 42.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/1.013, allocations: 108.8 kB / 0.7398 GB, free: 42.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 22,(1,100.0%) 12,(2,100.0%) 6,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00251/1.016, allocations: 1.349 MB / 0.7412 GB, free: 41.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005488/1.016, allocations: 285.3 kB / 0.7414 GB, free: 41.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005433/1.022, allocations: 3.405 MB / 0.7448 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/1.022, allocations: 26.28 kB / 0.7448 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/1.022, allocations: 0 / 0.7448 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/1.022, allocations: 10.41 kB / 0.7448 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/1.032, allocations: 7.27 MB / 0.7519 GB, free: 36.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/1.032, allocations: 5.594 kB / 0.7519 GB, free: 36.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/1.033, allocations: 292.7 kB / 0.7522 GB, free: 36.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/1.035, allocations: 1.075 MB / 0.7532 GB, free: 36.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/1.036, allocations: 62.72 kB / 0.7533 GB, free: 36.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.05, allocations: 11.87 MB / 0.7649 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/1.05, allocations: 7.766 kB / 0.7649 GB, free: 28.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/1.061, allocations: 4.76 MB / 0.7695 GB, free: 26.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.063, allocations: 0.5989 MB / 0.7701 GB, free: 25.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006686/1.064, allocations: 65 kB / 0.7702 GB, free: 25.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002317/1.066, allocations: 132.5 kB / 0.7703 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006875/1.067, allocations: 237.1 kB / 0.7705 GB, free: 25.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/1.067, allocations: 59.97 kB / 0.7706 GB, free: 25.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003626/1.071, allocations: 1.67 MB / 0.7722 GB, free: 24.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.071, allocations: 3.969 kB / 0.7722 GB, free: 24.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008062/1.079, allocations: 1.532 MB / 0.7737 GB, free: 24.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {5 51,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009538/1.08, allocations: 440.1 kB / 0.7741 GB, free: 24.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01453/1.095, allocations: 6.807 MB / 0.7808 GB, free: 20.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/1.095, allocations: 7.828 kB / 0.7808 GB, free: 20.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004654/1.099, allocations: 2.111 MB / 0.7829 GB, free: 18.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005803/1.105, allocations: 0.6575 MB / 0.7835 GB, free: 17.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.119, allocations: 9.436 MB / 0.7927 GB, free: 9.211 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002337/1.122, allocations: 2.794 MB / 0.7954 GB, free: 7.008 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000974/1.123, allocations: 200.9 kB / 0.7956 GB, free: 6.824 MB / 442.7 MB Notification: Performance of SimCode: time 9.12e-07/1.123, allocations: 0 / 0.7956 GB, free: 6.824 MB / 442.7 MB Notification: Performance of Templates: time 0.3638/1.486, allocations: 183.3 MB / 0.9746 GB, free: 25.64 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches