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.001059/0.001059, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007417/0.0007418, allocations: 100.1 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002112/0.0002113, allocations: 8 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1812, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.007334/0.1885, allocations: 10.17 MB / 418.2 MB, free: 17.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005173/0.1937, allocations: 3.689 MB / 421.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.1949, allocations: 55.75 kB / 422 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.1964, allocations: 0.6915 MB / 422.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001791/0.1982, allocations: 0.8079 MB / 423.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007849/0.199, allocations: 343.5 kB / 423.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.2014, allocations: 3.261 MB / 427.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001943/0.2033, allocations: 2.149 MB / 429.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.2047, allocations: 1.074 MB / 430.3 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.2062, allocations: 1.475 MB / 431.8 MB, free: 3.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002649/0.2065, allocations: 167.9 kB / 431.9 MB, free: 3.684 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008059/0.2073, allocations: 431.5 kB / 432.3 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005655/0.2079, allocations: 0.802 MB / 433.1 MB, free: 2.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.2089, allocations: 1.389 MB / 434.5 MB, free: 1.055 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003051/0.212, allocations: 4.044 MB / 438.6 MB, free: 13 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.212, allocations: 0 / 438.6 MB, free: 13 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.212, allocations: 0 / 438.6 MB, free: 13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.832e-05/0.2121, allocations: 4 kB / 438.6 MB, free: 13 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.005651/0.2178, allocations: 2.962 MB / 441.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2178, allocations: 12.03 kB / 441.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.2194, allocations: 453 kB / 442 MB, free: 9.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00294/0.2224, allocations: 1.788 MB / 443.8 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.2226, allocations: 193.3 kB / 444 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003517/0.2229, allocations: 255.9 kB / 444.2 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005295/0.2282, allocations: 3.243 MB / 447.5 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.353e-05/0.2283, allocations: 11.84 kB / 447.5 MB, free: 3.895 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000223/0.2286, allocations: 100 kB / 447.6 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.2287, allocations: 116.9 kB / 447.7 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005151/0.2338, allocations: 2.709 MB / 450.4 MB, free: 0.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01665/0.2505, allocations: 10.43 MB / 460.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.2527, allocations: 1.791 MB / 462.6 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.2545, allocations: 1.08 MB / 463.7 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002755/0.2547, allocations: 203.2 kB / 463.9 MB, free: 2.965 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.2548, allocations: 47.55 kB / 464 MB, free: 2.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 3.898e-06/0.2548, allocations: 0 / 464 MB, free: 2.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.01739/0.2722, allocations: 7.756 MB / 471.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.2723, allocations: 68.66 kB / 471.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/0.2749, allocations: 1.861 MB / 473.6 MB, free: 9.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.2751, allocations: 45.7 kB / 473.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007943/0.2759, allocations: 1.241 MB / 474.9 MB, free: 7.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.2762, allocations: 469.2 kB / 475.4 MB, free: 7.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.471e-05/0.2763, allocations: 36 kB / 475.4 MB, free: 7.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.2765, allocations: 369.9 kB / 475.8 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.2779, allocations: 0.8237 MB / 476.6 MB, free: 6.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.2795, allocations: 1.323 MB / 477.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003104/0.2826, allocations: 2.281 MB / 480.2 MB, free: 2.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.2826, allocations: 4 kB / 480.2 MB, free: 2.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00469/0.2873, allocations: 2.83 MB / 483 MB, free: 15.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.2874, allocations: 12 kB / 483 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.2874, allocations: 12 kB / 483.1 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009809/0.2884, allocations: 419.2 kB / 483.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.2899, allocations: 411.3 kB / 483.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00549/0.2954, allocations: 5.316 MB / 489.2 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.297, allocations: 139.8 kB / 489.3 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.2972, allocations: 68 kB / 489.4 MB, free: 8.555 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.001366/0.2985, allocations: 0.79 MB / 490.2 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003719/0.2989, allocations: 197.7 kB / 490.4 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004012/0.3029, allocations: 2.414 MB / 492.8 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-05/0.303, allocations: 20 kB / 492.8 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.303, allocations: 4 kB / 492.8 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.303, allocations: 7.969 kB / 492.8 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008503/0.3115, allocations: 5.319 MB / 498.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.3116, allocations: 4.562 kB / 498.1 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.3126, allocations: 255.6 kB / 498.4 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.3138, allocations: 462 kB / 498.8 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.3139, allocations: 35.98 kB / 498.9 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006506/0.3204, allocations: 6.729 MB / 0.4938 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.3205, allocations: 4 kB / 0.4938 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005729/0.3262, allocations: 3.616 MB / 0.4973 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009828/0.3272, allocations: 462.5 kB / 0.4977 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.3275, allocations: 39.92 kB / 0.4978 GB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.3286, allocations: 107.9 kB / 0.4979 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.3288, allocations: 112.7 kB / 0.498 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-05/0.3289, allocations: 39.98 kB / 0.498 GB, free: 3.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001902/0.3308, allocations: 1.279 MB / 0.4993 GB, free: 1.965 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3309, allocations: 4 kB / 0.4993 GB, free: 1.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001769/0.3326, allocations: 0.5547 MB / 0.4998 GB, free: 1.406 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.0004329/0.3331, allocations: 210.9 kB / 0.5 GB, free: 1.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1469/0.48, allocations: 2.432 MB / 0.5024 GB, free: 91.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.4801, allocations: 1.031 kB / 0.5024 GB, free: 91.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00255/0.4826, allocations: 1.514 MB / 0.5039 GB, free: 91.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/0.4858, allocations: 438.8 kB / 0.5043 GB, free: 91.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007742/0.4935, allocations: 6.113 MB / 0.5103 GB, free: 88.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/0.495, allocations: 1.99 MB / 0.5122 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006232/0.4956, allocations: 145.2 kB / 0.5123 GB, free: 87.11 MB / 378.7 MB Notification: Performance of SimCode: time 6.52e-07/0.4956, allocations: 0 / 0.5123 GB, free: 87.11 MB / 378.7 MB Notification: Performance of Templates: time 0.05557/0.5512, allocations: 69.74 MB / 0.5805 GB, free: 20.78 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