Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009484/0.0009484, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008875/0.0008874, allocations: 103.1 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002892, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2533, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008008/0.2614, allocations: 10.16 MB / 417.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006013/0.2675, allocations: 3.697 MB / 421.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.2689, allocations: 55.75 kB / 421.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.2705, allocations: 0.672 MB / 422.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001936/0.2724, allocations: 0.8078 MB / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008388/0.2733, allocations: 335.5 kB / 423.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002347/0.2756, allocations: 3.238 MB / 426.5 MB, free: 8.828 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.2771, allocations: 1.717 MB / 428.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.2783, allocations: 1.078 MB / 429.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.2795, allocations: 1.482 MB / 430.7 MB, free: 4.504 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002352/0.2797, allocations: 167.9 kB / 430.9 MB, free: 4.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006808/0.2804, allocations: 359.7 kB / 431.3 MB, free: 3.988 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004996/0.2809, allocations: 0.802 MB / 432.1 MB, free: 3.184 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.2813, allocations: 0.5861 MB / 432.6 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.2839, allocations: 4.028 MB / 436.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.284, allocations: 7.984 kB / 436.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.284, allocations: 0 / 436.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.895e-05/0.284, allocations: 4 kB / 436.7 MB, free: 14.54 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.005399/0.2894, allocations: 2.989 MB / 439.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2895, allocations: 12.03 kB / 439.7 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.291, allocations: 452 kB / 440.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.2936, allocations: 1.733 MB / 441.9 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.2938, allocations: 201 kB / 442.1 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003257/0.2941, allocations: 247.9 kB / 442.3 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005064/0.2992, allocations: 3.239 MB / 445.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.979e-05/0.2993, allocations: 7.891 kB / 445.5 MB, free: 5.473 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002179/0.2995, allocations: 108 kB / 445.6 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.2996, allocations: 116.9 kB / 445.8 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004508/0.3041, allocations: 2.713 MB / 448.5 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/0.3199, allocations: 10.43 MB / 458.9 MB, free: 7.746 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002178/0.3221, allocations: 1.786 MB / 460.7 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.3238, allocations: 1.061 MB / 461.8 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/0.3241, allocations: 211.2 kB / 462 MB, free: 4.543 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3241, allocations: 47.56 kB / 462 MB, free: 4.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 4.749e-06/0.3241, allocations: 0 / 462 MB, free: 4.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.01697/0.3411, allocations: 7.748 MB / 469.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3412, allocations: 68.66 kB / 469.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.3438, allocations: 1.865 MB / 471.7 MB, free: 10.67 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-05/0.344, allocations: 45.7 kB / 471.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00084/0.3448, allocations: 1.245 MB / 473 MB, free: 9.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003688/0.3452, allocations: 469.2 kB / 473.4 MB, free: 8.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.183e-05/0.3453, allocations: 31.98 kB / 473.5 MB, free: 8.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3454, allocations: 373.9 kB / 473.8 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.3468, allocations: 0.8276 MB / 474.7 MB, free: 7.664 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.3484, allocations: 1.319 MB / 476 MB, free: 6.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.35, allocations: 1.029 MB / 477 MB, free: 5.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.35, allocations: 4 kB / 477 MB, free: 5.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004546/0.3545, allocations: 2.818 MB / 479.8 MB, free: 2.246 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.3546, allocations: 12 kB / 479.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.3546, allocations: 20 kB / 479.9 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009547/0.3556, allocations: 416.2 kB / 480.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.357, allocations: 411.3 kB / 480.7 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/0.3622, allocations: 5.316 MB / 486 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.3637, allocations: 135.8 kB / 486.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3638, allocations: 71.98 kB / 486.2 MB, free: 11.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(3,100.0%) 12,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00124/0.3651, allocations: 0.7855 MB / 487 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.3654, allocations: 197.7 kB / 487.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/0.3692, allocations: 2.422 MB / 489.6 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.902e-05/0.3692, allocations: 19.98 kB / 489.6 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3692, allocations: 4 kB / 489.6 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.3692, allocations: 3.984 kB / 489.6 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007778/0.377, allocations: 5.323 MB / 494.9 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.377, allocations: 4.562 kB / 494.9 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000993/0.378, allocations: 259.6 kB / 495.2 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.3791, allocations: 458 kB / 495.6 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.485e-05/0.3792, allocations: 31.98 kB / 495.7 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00642/0.3857, allocations: 6.725 MB / 0.4906 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.3857, allocations: 11.98 kB / 0.4906 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005548/0.3913, allocations: 3.612 MB / 0.4942 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009933/0.3923, allocations: 458.5 kB / 0.4946 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004235/0.3927, allocations: 35.89 kB / 0.4946 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.394, allocations: 115.9 kB / 0.4947 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.3942, allocations: 104.8 kB / 0.4948 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-05/0.3943, allocations: 43.98 kB / 0.4949 GB, free: 6.297 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002129/0.3965, allocations: 1.283 MB / 0.4961 GB, free: 5.023 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3965, allocations: 7.938 kB / 0.4961 GB, free: 5.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002069/0.3986, allocations: 0.543 MB / 0.4967 GB, free: 4.473 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(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.0004075/0.399, allocations: 185.1 kB / 0.4969 GB, free: 4.285 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.403, allocations: 2.432 MB / 0.4992 GB, free: 1.801 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.403, allocations: 0 / 0.4992 GB, free: 1.801 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002445/0.4054, allocations: 1.522 MB / 0.5007 GB, free: 248 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1667/0.5721, allocations: 430.4 kB / 0.5011 GB, free: 91.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008478/0.5806, allocations: 6.119 MB / 0.5071 GB, free: 88.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.5819, allocations: 1.991 MB / 0.509 GB, free: 88.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000616/0.5826, allocations: 139.9 kB / 0.5092 GB, free: 88.15 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5826, allocations: 0 / 0.5092 GB, free: 88.15 MB / 378.7 MB Notification: Performance of Templates: time 0.05376/0.6363, allocations: 69.76 MB / 0.5773 GB, free: 23.66 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches