Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000999/0.0009989, allocations: 196.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007807/0.0007808, allocations: 102.1 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002317, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2038, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.00778/0.2116, allocations: 9.015 MB / 416.5 MB, free: 18.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00497/0.2166, allocations: 3.091 MB / 419.6 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.2182, allocations: 51.75 kB / 419.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.2199, allocations: 0.5591 MB / 420.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002172/0.2221, allocations: 0.7147 MB / 420.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000887/0.223, allocations: 267.5 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002804/0.2258, allocations: 3.035 MB / 424.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.228, allocations: 1.659 MB / 425.9 MB, free: 9.363 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.2295, allocations: 0.9999 MB / 426.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.2315, allocations: 1.377 MB / 428.3 MB, free: 6.977 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006067/0.2321, allocations: 152 kB / 428.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.2331, allocations: 239.9 kB / 428.6 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.2342, allocations: 0.7631 MB / 429.4 MB, free: 5.828 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.2352, allocations: 0.551 MB / 430 MB, free: 5.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003133/0.2383, allocations: 3.752 MB / 433.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.2383, allocations: 0 / 433.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.2384, allocations: 0 / 433.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001989/0.2386, allocations: 0 / 433.7 MB, free: 1.508 MB / 298.7 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.006378/0.2449, allocations: 2.801 MB / 436.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.245, allocations: 12.03 kB / 436.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/0.2466, allocations: 364.3 kB / 436.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003501/0.2501, allocations: 1.659 MB / 438.5 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.2503, allocations: 176.7 kB / 438.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004343/0.2508, allocations: 235.9 kB / 438.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005147/0.2559, allocations: 3.137 MB / 442.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.256, allocations: 4 kB / 442.1 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.2562, allocations: 100 kB / 442.2 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.2563, allocations: 104.6 kB / 442.3 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004487/0.2608, allocations: 2.7 MB / 445 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01468/0.2755, allocations: 9.786 MB / 454.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002648/0.2782, allocations: 2.171 MB / 456.9 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/0.2801, allocations: 1.131 MB / 458.1 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000292/0.2804, allocations: 203.2 kB / 458.3 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.2805, allocations: 55.44 kB / 458.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.136e-06/0.2805, allocations: 0 / 458.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.014/0.2945, allocations: 6.943 MB / 465.3 MB, free: 1.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.2946, allocations: 72.66 kB / 465.3 MB, free: 0.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002731/0.2974, allocations: 1.731 MB / 467.1 MB, free: 15.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.2975, allocations: 45.7 kB / 467.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008565/0.2983, allocations: 1.163 MB / 468.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003468/0.2987, allocations: 453.5 kB / 468.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.599e-05/0.2988, allocations: 32 kB / 468.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.299, allocations: 365.9 kB / 469.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.3002, allocations: 0.8042 MB / 469.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3016, allocations: 1.205 MB / 471.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.303, allocations: 0.9706 MB / 472.1 MB, free: 10 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.303, allocations: 4 kB / 472.1 MB, free: 10 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00413/0.3072, allocations: 2.686 MB / 474.8 MB, free: 7.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.3072, allocations: 8 kB / 474.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.3072, allocations: 12 kB / 474.8 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009149/0.3081, allocations: 427.4 kB / 475.2 MB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3094, allocations: 375.4 kB / 475.6 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006128/0.3156, allocations: 6.465 MB / 482 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.3168, allocations: 103.9 kB / 482.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.3169, allocations: 71.98 kB / 482.2 MB, free: 15.41 MB / 362.7 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[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.001293/0.3182, allocations: 0.7978 MB / 483 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002996/0.3185, allocations: 189.7 kB / 483.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.3224, allocations: 2.403 MB / 485.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3224, allocations: 12 kB / 485.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3224, allocations: 4 kB / 485.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3224, allocations: 7.969 kB / 485.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.3303, allocations: 5.151 MB / 490.8 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.3304, allocations: 4 kB / 490.8 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009895/0.3314, allocations: 244 kB / 491 MB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3325, allocations: 450.6 kB / 491.5 MB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.963e-05/0.3326, allocations: 43.91 kB / 491.5 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007751/0.3404, allocations: 7.935 MB / 499.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3404, allocations: 7.938 kB / 499.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/0.346, allocations: 3.547 MB / 0.4912 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/0.347, allocations: 438.7 kB / 0.4916 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/0.3472, allocations: 31.98 kB / 0.4917 GB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009191/0.3482, allocations: 99.91 kB / 0.4917 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/0.3485, allocations: 112.7 kB / 0.4919 GB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.413e-05/0.3486, allocations: 43.98 kB / 0.4919 GB, free: 9.078 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001808/0.3504, allocations: 1.187 MB / 0.4931 GB, free: 7.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3504, allocations: 0 / 0.4931 GB, free: 7.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001823/0.3522, allocations: 0.5039 MB / 0.4935 GB, free: 7.395 MB / 378.7 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 (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.0003564/0.3526, allocations: 159 kB / 0.4937 GB, free: 7.227 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003983/0.3566, allocations: 2.481 MB / 0.4961 GB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3566, allocations: 0 / 0.4961 GB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002449/0.3591, allocations: 1.61 MB / 0.4977 GB, free: 3.027 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.3613, allocations: 476.1 kB / 0.4981 GB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1545/0.5159, allocations: 5.951 MB / 0.504 GB, free: 89.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.5174, allocations: 1.963 MB / 0.5059 GB, free: 88.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/0.518, allocations: 134.1 kB / 0.506 GB, free: 88.94 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.518, allocations: 0 / 0.506 GB, free: 88.94 MB / 378.7 MB Notification: Performance of Templates: time 0.05878/0.5768, allocations: 78.86 MB / 0.583 GB, free: 17.18 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches