Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001316, allocations: 96.5 kB / 16.95 MB, free: 6.469 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.001393/0.001393, allocations: 183.5 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008616/0.0008619, allocations: 12 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1484, allocations: 47.59 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL): time 0.013/0.1615, allocations: 8.96 MB / 337.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009506/0.1711, allocations: 3.083 MB / 340.4 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.174, allocations: 47.75 kB / 340.5 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003207/0.1773, allocations: 0.5513 MB / 341 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004575/0.1819, allocations: 0.7148 MB / 341.7 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.1841, allocations: 275.5 kB / 342 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006068/0.1901, allocations: 3.039 MB / 345 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004639/0.1948, allocations: 1.611 MB / 346.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.1977, allocations: 1.008 MB / 347.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003586/0.2014, allocations: 1.385 MB / 349 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001189/0.2026, allocations: 148 kB / 349.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.205, allocations: 227.9 kB / 349.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002155/0.2072, allocations: 0.7787 MB / 350.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002163/0.2094, allocations: 0.5471 MB / 350.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006324/0.2157, allocations: 3.728 MB / 354.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.213e-05/0.2158, allocations: 4 kB / 354.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.908e-06/0.2158, allocations: 0 / 354.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002442/0.216, allocations: 11.88 kB / 354.5 MB, free: 9.828 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.008432/0.2245, allocations: 2.793 MB / 357.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.2246, allocations: 12.03 kB / 357.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.2264, allocations: 332.3 kB / 357.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004313/0.2307, allocations: 1.577 MB / 359.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000288/0.231, allocations: 184.6 kB / 359.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008542/0.2319, allocations: 231.9 kB / 359.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009028/0.2409, allocations: 3.133 MB / 362.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.2411, allocations: 3.906 kB / 362.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006326/0.2418, allocations: 96 kB / 362.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.242, allocations: 108.5 kB / 362.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007463/0.2494, allocations: 2.704 MB / 365.6 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02515/0.2747, allocations: 9.79 MB / 375.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003738/0.2785, allocations: 2.184 MB / 377.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002323/0.2808, allocations: 1.132 MB / 378.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004939/0.2814, allocations: 207.2 kB / 378.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.296e-05/0.2815, allocations: 47.5 kB / 379 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.899e-06/0.2815, allocations: 4 kB / 379 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.2726/0.5541, allocations: 6.79 MB / 385.8 MB, free: 49.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.5542, allocations: 64.78 kB / 385.8 MB, free: 49.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003706/0.5579, allocations: 1.728 MB / 387.6 MB, free: 48.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000306/0.5583, allocations: 51.44 kB / 387.6 MB, free: 48.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009625/0.5593, allocations: 1.159 MB / 388.8 MB, free: 47.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005489/0.5598, allocations: 454.4 kB / 389.2 MB, free: 47.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.5599, allocations: 30.16 kB / 389.2 MB, free: 47.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5601, allocations: 370.4 kB / 389.6 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.5617, allocations: 0.7965 MB / 390.4 MB, free: 46.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.5633, allocations: 1.212 MB / 391.6 MB, free: 45.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.5649, allocations: 0.9782 MB / 392.6 MB, free: 45.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/0.5649, allocations: 0 / 392.6 MB, free: 45.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004916/0.5698, allocations: 2.677 MB / 395.3 MB, free: 44.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.5699, allocations: 11 kB / 395.3 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/0.57, allocations: 16.33 kB / 395.3 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009675/0.5709, allocations: 425.1 kB / 395.7 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.5723, allocations: 360.3 kB / 396.1 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005573/0.5779, allocations: 6.482 MB / 402.5 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5797, allocations: 116.9 kB / 402.7 MB, free: 38.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/0.5801, allocations: 60.22 kB / 402.7 MB, free: 38.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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: 3 * 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 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001881/0.582, allocations: 0.7967 MB / 403.5 MB, free: 38.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006372/0.5826, allocations: 181.6 kB / 403.7 MB, free: 38.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003747/0.5864, allocations: 2.394 MB / 406.1 MB, free: 36.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.5864, allocations: 18.88 kB / 406.1 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.5864, allocations: 4 kB / 406.1 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.5864, allocations: 11.92 kB / 406.1 MB, free: 36.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00815/0.5946, allocations: 5.146 MB / 411.3 MB, free: 30.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.5947, allocations: 4 kB / 411.3 MB, free: 30.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008791/0.5955, allocations: 239.6 kB / 411.5 MB, free: 30.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009457/0.5965, allocations: 452 kB / 411.9 MB, free: 30.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.5966, allocations: 46.7 kB / 412 MB, free: 30.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005541/0.6022, allocations: 7.919 MB / 419.9 MB, free: 21.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.6022, allocations: 8.031 kB / 419.9 MB, free: 21.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.6072, allocations: 3.551 MB / 423.5 MB, free: 18.17 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.6083, allocations: 442.7 kB / 423.9 MB, free: 17.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005157/0.6088, allocations: 39.38 kB / 423.9 MB, free: 17.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.61, allocations: 95.84 kB / 424 MB, free: 17.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.6103, allocations: 116.8 kB / 424.1 MB, free: 17.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.6104, allocations: 39.98 kB / 424.2 MB, free: 17.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002012/0.6124, allocations: 1.186 MB / 425.4 MB, free: 16.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6124, allocations: 0 / 425.4 MB, free: 16.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002409/0.6148, allocations: 0.5026 MB / 425.9 MB, free: 15.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 4 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004196/0.6153, allocations: 166.9 kB / 426 MB, free: 15.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003704/0.619, allocations: 2.468 MB / 428.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.619, allocations: 0 / 428.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.6213, allocations: 1.623 MB / 430.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/0.6244, allocations: 457.2 kB / 430.6 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.6331, allocations: 5.936 MB / 436.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/0.6352, allocations: 1.989 MB / 438.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.6367, allocations: 447.4 kB / 438.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004711/0.6372, allocations: 127.4 kB / 439.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6372, allocations: 0 / 439.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of Templates: time 0.05196/0.6892, allocations: 25.47 MB / 464.5 MB, free: 8.844 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches