Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001248/0.001248, allocations: 183.1 kB / 18.04 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.4 MB / 224.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007609/0.0007611, allocations: 81.55 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003182, allocations: 16 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2228, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.3541, allocations: 121.6 MB / 498.6 MB, free: 6.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.3544, allocations: 87.95 kB / 498.7 MB, free: 6.793 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4224/0.7768, allocations: 102 MB / 0.5866 GB, free: 31.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7769, allocations: 0 / 0.5866 GB, free: 31.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004004/0.7773, allocations: 103.9 kB / 0.5867 GB, free: 31.48 MB / 378.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.0135/0.7908, allocations: 4.664 MB / 0.5913 GB, free: 26.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.7909, allocations: 15.97 kB / 0.5913 GB, free: 26.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005362/0.7962, allocations: 0.9555 MB / 0.5922 GB, free: 25.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008057/0.8043, allocations: 3.399 MB / 0.5955 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/0.8047, allocations: 479.1 kB / 0.596 GB, free: 21.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.8059, allocations: 412.3 kB / 0.5964 GB, free: 21.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.8168, allocations: 5.357 MB / 0.6016 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.817, allocations: 3.906 kB / 0.6016 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000699/0.8177, allocations: 176 kB / 0.6018 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001331/0.8178, allocations: 168.2 kB / 0.6019 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00862/0.8265, allocations: 4.327 MB / 0.6062 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/0.8565, allocations: 17.92 MB / 0.6237 GB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007305/0.8638, allocations: 8.27 MB / 0.6317 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002886/0.8668, allocations: 1.878 MB / 0.6336 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009686/0.8765, allocations: 5.474 MB / 0.6389 GB, free: 7.977 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001836/0.8783, allocations: 1.261 MB / 0.6402 GB, free: 6.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=181): time 4.038e-06/0.8784, allocations: 0 / 0.6402 GB, free: 6.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=213): time 0.2178/1.096, allocations: 8.679 MB / 0.6486 GB, free: 71.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/1.096, allocations: 341.5 kB / 0.649 GB, free: 70.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005039/1.101, allocations: 2.458 MB / 0.6514 GB, free: 70.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003825/1.102, allocations: 72.11 kB / 0.6514 GB, free: 70.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.104, allocations: 1.927 MB / 0.6533 GB, free: 70.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008418/1.105, allocations: 0.7119 MB / 0.654 GB, free: 69.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/1.105, allocations: 50.72 kB / 0.654 GB, free: 69.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.105, allocations: 408.4 kB / 0.6544 GB, free: 69.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/1.107, allocations: 1.099 MB / 0.6555 GB, free: 69.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/1.109, allocations: 1.867 MB / 0.6573 GB, free: 68.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/1.113, allocations: 2.982 MB / 0.6602 GB, free: 67.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/1.113, allocations: 11.44 kB / 0.6603 GB, free: 67.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=329) (initialization): time 0.006848/1.12, allocations: 4.019 MB / 0.6642 GB, free: 67.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003419/1.121, allocations: 0.6839 MB / 0.6648 GB, free: 66.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/1.121, allocations: 25.5 kB / 0.6649 GB, free: 66.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002378/1.123, allocations: 1.008 MB / 0.6659 GB, free: 66.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/1.125, allocations: 488.5 kB / 0.6663 GB, free: 66.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/1.138, allocations: 14.2 MB / 0.6802 GB, free: 58.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/1.141, allocations: 175.8 kB / 0.6804 GB, free: 58.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005112/1.142, allocations: 104.5 kB / 0.6805 GB, free: 58.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/1.142, allocations: 6.297 kB / 0.6805 GB, free: 58.48 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006515/1.148, allocations: 3.724 MB / 0.6841 GB, free: 58.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.294e-05/1.148, allocations: 19.47 kB / 0.6841 GB, free: 58.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002411/1.151, allocations: 1.013 MB / 0.6851 GB, free: 58.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/1.153, allocations: 482.4 kB / 0.6856 GB, free: 58.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/1.166, allocations: 14.19 MB / 0.6994 GB, free: 49.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002636/1.169, allocations: 171.3 kB / 0.6996 GB, free: 49.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003911/1.169, allocations: 106.5 kB / 0.6997 GB, free: 49.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * 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 (271): * Single equations (assignments): 264 * 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: 6 * 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: 3 {(2,100.0%) 22,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003197/1.173, allocations: 1.346 MB / 0.701 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007614/1.173, allocations: 280.4 kB / 0.7013 GB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006434/1.18, allocations: 3.369 MB / 0.7046 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/1.18, allocations: 20.56 kB / 0.7046 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/1.18, allocations: 3.703 kB / 0.7046 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/1.18, allocations: 7.406 kB / 0.7046 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/1.194, allocations: 7.2 MB / 0.7116 GB, free: 44.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/1.194, allocations: 3.25 kB / 0.7116 GB, free: 44.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/1.195, allocations: 294 kB / 0.7119 GB, free: 44.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00248/1.198, allocations: 1.073 MB / 0.713 GB, free: 44.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/1.198, allocations: 58.3 kB / 0.713 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.21, allocations: 11.78 MB / 0.7245 GB, free: 35.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.21, allocations: 6.719 kB / 0.7245 GB, free: 35.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007943/1.218, allocations: 4.701 MB / 0.7291 GB, free: 33.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/1.22, allocations: 0.6007 MB / 0.7297 GB, free: 33.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009115/1.221, allocations: 62.11 kB / 0.7298 GB, free: 33.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/1.223, allocations: 129.7 kB / 0.7299 GB, free: 33.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006221/1.223, allocations: 240.8 kB / 0.7301 GB, free: 33.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/1.224, allocations: 63.62 kB / 0.7302 GB, free: 33.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002983/1.227, allocations: 1.659 MB / 0.7318 GB, free: 32.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.533e-06/1.227, allocations: 0 / 0.7318 GB, free: 32.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006191/1.233, allocations: 1.528 MB / 0.7333 GB, free: 32.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (153): * Single equations (assignments): 145 * 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 {4 55,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000707/1.234, allocations: 433.5 kB / 0.7337 GB, free: 32.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009513/1.243, allocations: 6.566 MB / 0.7401 GB, free: 28.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.243, allocations: 4 kB / 0.7401 GB, free: 28.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003109/1.246, allocations: 2.192 MB / 0.7423 GB, free: 26.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004339/1.251, allocations: 0.6493 MB / 0.7429 GB, free: 26.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/1.265, allocations: 9.428 MB / 0.7521 GB, free: 17.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003075/1.268, allocations: 2.843 MB / 0.7549 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003192/1.271, allocations: 0.7115 MB / 0.7556 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006293/1.272, allocations: 175.1 kB / 0.7557 GB, free: 14.65 MB / 410.7 MB Notification: Performance of SimCode: time 6.12e-07/1.272, allocations: 0 / 0.7557 GB, free: 14.65 MB / 410.7 MB Notification: Performance of Templates: time 0.08631/1.358, allocations: 52.13 MB / 0.8066 GB, free: 5.441 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches