Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009521/0.0009521, allocations: 199.6 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.234/1.234, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007743/0.0007743, allocations: 98.66 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002095/0.0002095, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1846, allocations: 51.3 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2632/0.4478, allocations: 116.9 MB / 0.5132 GB, free: 99.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4481, allocations: 93.91 kB / 0.5133 GB, free: 99.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1364/0.5845, allocations: 62.67 MB / 0.5745 GB, free: 37.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5846, allocations: 0 / 0.5745 GB, free: 37.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001866/0.5848, allocations: 79.92 kB / 0.5746 GB, free: 37.67 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.006408/0.5912, allocations: 3.417 MB / 0.5779 GB, free: 34.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.5912, allocations: 12.03 kB / 0.5779 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.5929, allocations: 488.4 kB / 0.5784 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00354/0.5965, allocations: 2.162 MB / 0.5805 GB, free: 31.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.5966, allocations: 384.4 kB / 0.5809 GB, free: 31.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/0.5971, allocations: 288.3 kB / 0.5811 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004995/0.6021, allocations: 3.698 MB / 0.5848 GB, free: 26.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/0.6022, allocations: 7.906 kB / 0.5848 GB, free: 26.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002558/0.6024, allocations: 124 kB / 0.5849 GB, free: 26.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.372e-05/0.6025, allocations: 113.5 kB / 0.585 GB, free: 26.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004194/0.6067, allocations: 2.938 MB / 0.5879 GB, free: 23.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/0.6209, allocations: 11.98 MB / 0.5996 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.6234, allocations: 2.852 MB / 0.6023 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.6248, allocations: 1.153 MB / 0.6035 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002477/0.625, allocations: 142.3 kB / 0.6036 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001401/0.6265, allocations: 1.167 MB / 0.6047 GB, free: 5.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 3.497e-06/0.6265, allocations: 0 / 0.6047 GB, free: 5.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=180): time 0.02008/0.6466, allocations: 9.973 MB / 0.6145 GB, free: 11.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.6467, allocations: 316.7 kB / 0.6148 GB, free: 11.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.6498, allocations: 2.088 MB / 0.6168 GB, free: 9.191 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002129/0.6501, allocations: 61.69 kB / 0.6169 GB, free: 9.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.6512, allocations: 1.38 MB / 0.6182 GB, free: 7.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/0.6518, allocations: 0.5932 MB / 0.6188 GB, free: 7.129 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.6519, allocations: 40 kB / 0.6189 GB, free: 7.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.6521, allocations: 389.9 kB / 0.6192 GB, free: 6.703 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.6538, allocations: 1.054 MB / 0.6203 GB, free: 5.645 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/0.6559, allocations: 1.596 MB / 0.6218 GB, free: 3.828 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003617/0.6595, allocations: 2.63 MB / 0.6244 GB, free: 1.016 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.6595, allocations: 4 kB / 0.6244 GB, free: 1.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006231/0.6658, allocations: 3.675 MB / 0.628 GB, free: 13.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.6661, allocations: 487.4 kB / 0.6284 GB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.6661, allocations: 19.94 kB / 0.6285 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/0.669, allocations: 1.199 MB / 0.6296 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.6704, allocations: 383.4 kB / 0.63 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/0.6855, allocations: 14.6 MB / 0.6443 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/0.6877, allocations: 179.8 kB / 0.6444 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001974/0.6879, allocations: 83.98 kB / 0.6445 GB, free: 11.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.657e-06/0.6879, allocations: 4 kB / 0.6445 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00549/0.6934, allocations: 3.418 MB / 0.6478 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.6934, allocations: 19.94 kB / 0.6479 GB, free: 7.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/0.6962, allocations: 1.189 MB / 0.649 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.6975, allocations: 383.3 kB / 0.6494 GB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/0.7126, allocations: 14.56 MB / 0.6636 GB, free: 6.961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.7148, allocations: 171.9 kB / 0.6638 GB, free: 6.793 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.715, allocations: 87.98 kB / 0.6639 GB, free: 6.707 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (212): * Single equations (assignments): 205 * 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 {(4,100.0%) 14,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001736/0.7167, allocations: 0.9845 MB / 0.6648 GB, free: 5.711 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.7171, allocations: 233.2 kB / 0.665 GB, free: 5.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006404/0.7235, allocations: 3.513 MB / 0.6685 GB, free: 1.938 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.7236, allocations: 16 kB / 0.6685 GB, free: 1.922 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.7236, allocations: 4 kB / 0.6685 GB, free: 1.918 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.7236, allocations: 7.969 kB / 0.6685 GB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1729/0.8965, allocations: 6.775 MB / 0.6751 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.8966, allocations: 3.75 kB / 0.6751 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007678/0.8973, allocations: 205.1 kB / 0.6753 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003203/0.9006, allocations: 1.432 MB / 0.6767 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.9007, allocations: 48.42 kB / 0.6768 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/0.9154, allocations: 14.85 MB / 0.6913 GB, free: 94.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.9154, allocations: 0 / 0.6913 GB, free: 94.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007167/0.9226, allocations: 4.86 MB / 0.696 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.9238, allocations: 0.5378 MB / 0.6965 GB, free: 94.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/0.9242, allocations: 51.91 kB / 0.6966 GB, free: 94.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.9255, allocations: 139.5 kB / 0.6967 GB, free: 94.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004611/0.9259, allocations: 228 kB / 0.6969 GB, free: 94.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.926, allocations: 53.75 kB / 0.697 GB, free: 94.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001966/0.928, allocations: 1.43 MB / 0.6984 GB, free: 94.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.928, allocations: 0 / 0.6984 GB, free: 94.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00362/0.9317, allocations: 1.266 MB / 0.6996 GB, free: 94.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * 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 (116): * Single equations (assignments): 107 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006163/0.9323, allocations: 343.1 kB / 0.6999 GB, free: 93.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008353/0.9407, allocations: 6.362 MB / 0.7062 GB, free: 91.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.9407, allocations: 0 / 0.7062 GB, free: 91.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003312/0.944, allocations: 2.401 MB / 0.7085 GB, free: 90.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.9474, allocations: 0.5295 MB / 0.709 GB, free: 90.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009409/0.9568, allocations: 7.419 MB / 0.7163 GB, free: 86.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.9584, allocations: 2.233 MB / 0.7184 GB, free: 85.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006134/0.959, allocations: 149.2 kB / 0.7186 GB, free: 85.96 MB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.959, allocations: 0 / 0.7186 GB, free: 85.96 MB / 442.7 MB Notification: Performance of Templates: time 0.2922/1.251, allocations: 124.7 MB / 0.8404 GB, free: 114.2 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches