Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008843/0.0008844, allocations: 93.7 kB / 17.31 MB, free: 6.535 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.0009764/0.0009765, allocations: 175.9 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 223.3 MB / 242.2 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 7.938 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07459/0.07483, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.009412/0.08426, allocations: 9.578 MB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005013/0.08928, allocations: 3.159 MB / 365.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.0903, allocations: 51.75 kB / 365.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.09174, allocations: 0.6136 MB / 365.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.09375, allocations: 0.7538 MB / 366.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007688/0.09453, allocations: 363.6 kB / 367 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003183/0.09772, allocations: 3.359 MB / 370.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1362/0.2339, allocations: 2.065 MB / 372.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.2355, allocations: 1.015 MB / 373.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.2371, allocations: 1.431 MB / 374.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002701/0.2374, allocations: 150.4 kB / 375 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005874/0.238, allocations: 259 kB / 375.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006908/0.2387, allocations: 0.7764 MB / 376 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.2397, allocations: 1.355 MB / 377.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002992/0.2427, allocations: 3.74 MB / 381.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2427, allocations: 0 / 381.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2428, allocations: 0.875 kB / 381.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.291e-05/0.2428, allocations: 4 kB / 381.1 MB, free: 9.98 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.004506/0.2473, allocations: 2.764 MB / 383.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2474, allocations: 9.469 kB / 383.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006936/0.2481, allocations: 336.8 kB / 384.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.2503, allocations: 1.703 MB / 386 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.2504, allocations: 179.7 kB / 386.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003462/0.2508, allocations: 237.5 kB / 386.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004521/0.2553, allocations: 3.154 MB / 389.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.788e-05/0.2554, allocations: 11 kB / 389.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002274/0.2556, allocations: 93.5 kB / 389.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001003/0.2557, allocations: 108.2 kB / 389.7 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003926/0.2597, allocations: 2.722 MB / 392.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01135/0.271, allocations: 9.789 MB / 402.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.2735, allocations: 2.184 MB / 404.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/0.2755, allocations: 1.129 MB / 405.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002651/0.2757, allocations: 202.8 kB / 405.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.2758, allocations: 58.28 kB / 405.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 2.434e-06/0.2758, allocations: 4 kB / 405.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01352/0.2893, allocations: 6.96 MB / 412.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.2894, allocations: 68.66 kB / 412.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.2917, allocations: 1.743 MB / 414.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.556e-05/0.2918, allocations: 45.7 kB / 414.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007897/0.2926, allocations: 1.157 MB / 415.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.2929, allocations: 451.3 kB / 416.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.2931, allocations: 140.5 kB / 416.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.2932, allocations: 309 kB / 416.7 MB, free: 256 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.2945, allocations: 0.8014 MB / 417.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.2961, allocations: 1.219 MB / 418.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.299, allocations: 2.121 MB / 420.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.299, allocations: 4 kB / 420.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004243/0.3033, allocations: 2.703 MB / 423.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3033, allocations: 12 kB / 423.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3033, allocations: 12 kB / 423.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009389/0.3043, allocations: 416 kB / 423.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.3056, allocations: 369.2 kB / 424.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006291/0.3119, allocations: 6.492 MB / 430.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.313, allocations: 123.8 kB / 430.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.3131, allocations: 60 kB / 431 MB, free: 1.352 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001138/0.3143, allocations: 0.7939 MB / 431.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.3146, allocations: 185.7 kB / 431.9 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004054/0.3186, allocations: 2.412 MB / 434.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3187, allocations: 12 kB / 434.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3187, allocations: 8 kB / 434.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3187, allocations: 3.984 kB / 434.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007831/0.3265, allocations: 5.161 MB / 439.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.3266, allocations: 8.031 kB / 439.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.3276, allocations: 238 kB / 439.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.3287, allocations: 450.7 kB / 440.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-05/0.3288, allocations: 35.98 kB / 440.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007367/0.3362, allocations: 7.941 MB / 448.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3362, allocations: 4.094 kB / 448.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005181/0.3414, allocations: 3.567 MB / 451.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006426/0.342, allocations: 434.7 kB / 452.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.3423, allocations: 35.98 kB / 452.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000956/0.3432, allocations: 96.03 kB / 452.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.3435, allocations: 124.1 kB / 452.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.529e-05/0.3436, allocations: 39.98 kB / 452.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001583/0.3452, allocations: 1.198 MB / 453.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.3452, allocations: 0 / 453.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001489/0.3467, allocations: 0.5038 MB / 454.2 MB, free: 9.477 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003504/0.347, allocations: 209.4 kB / 454.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.3507, allocations: 2.48 MB / 456.9 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3507, allocations: 0 / 456.9 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.3531, allocations: 1.621 MB / 458.5 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.3559, allocations: 453.2 kB / 458.9 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007552/0.3634, allocations: 6.249 MB / 465.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/0.3651, allocations: 1.969 MB / 467.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004486/0.3655, allocations: 135.4 kB / 467.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3655, allocations: 0 / 467.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of Templates: time 0.2149/0.5804, allocations: 78.79 MB / 0.5333 GB, free: 154 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches