Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007698/0.0007698, allocations: 90.98 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008624/0.0008624, allocations: 201.2 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002662, allocations: 11.98 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.012/0.1174, allocations: 10.84 MB / 370.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1815/0.2989, allocations: 3.852 MB / 374.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001984/0.3009, allocations: 60.34 kB / 374.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002538/0.3035, allocations: 0.7279 MB / 375.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003204/0.3067, allocations: 0.8579 MB / 376.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.308, allocations: 464 kB / 376.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004163/0.3121, allocations: 3.573 MB / 380.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003084/0.3152, allocations: 2.15 MB / 382.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.3174, allocations: 1.094 MB / 383.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002801/0.3202, allocations: 1.54 MB / 385.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007295/0.3209, allocations: 161.9 kB / 385.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.3223, allocations: 412 kB / 385.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009415/0.3233, allocations: 0.7985 MB / 386.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.3253, allocations: 1.46 MB / 387.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.329, allocations: 4.049 MB / 391.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.329, allocations: 1 kB / 391.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.329, allocations: 0 / 391.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001125/0.3291, allocations: 0 / 391.9 MB, free: 4.098 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.006193/0.3353, allocations: 2.975 MB / 394.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3354, allocations: 9.625 kB / 394.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.3371, allocations: 452.8 kB / 395.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002742/0.3399, allocations: 1.808 MB / 397.2 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.3401, allocations: 194.3 kB / 397.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003549/0.3404, allocations: 258.5 kB / 397.6 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005198/0.3456, allocations: 3.262 MB / 400.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.137e-05/0.3457, allocations: 11.09 kB / 400.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/0.346, allocations: 103.8 kB / 401 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.3461, allocations: 122.7 kB / 401.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004645/0.3507, allocations: 2.728 MB / 403.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01608/0.3668, allocations: 10.43 MB / 414.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.3691, allocations: 1.794 MB / 416.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.371, allocations: 1.073 MB / 417.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003183/0.3713, allocations: 207.9 kB / 417.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.227e-05/0.3714, allocations: 51.56 kB / 417.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=115): time 3.857e-06/0.3714, allocations: 0 / 417.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01867/0.3901, allocations: 7.772 MB / 425.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.3902, allocations: 68.66 kB / 425.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/0.3931, allocations: 1.885 MB / 427.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.3933, allocations: 45.7 kB / 427.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008992/0.3942, allocations: 1.251 MB / 428.4 MB, free: 3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.3946, allocations: 470.6 kB / 428.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.3948, allocations: 129.6 kB / 429 MB, free: 2.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.307e-05/0.3949, allocations: 301.1 kB / 429.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.3963, allocations: 0.8315 MB / 430.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.3981, allocations: 1.34 MB / 431.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00323/0.4013, allocations: 2.284 MB / 433.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.4013, allocations: 4 kB / 433.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004963/0.4063, allocations: 2.844 MB / 436.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.4064, allocations: 12 kB / 436.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/0.4064, allocations: 16 kB / 436.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009948/0.4074, allocations: 414.5 kB / 437 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.4089, allocations: 411.3 kB / 437.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005832/0.4147, allocations: 5.312 MB / 442.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.4167, allocations: 139.9 kB / 442.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000238/0.417, allocations: 72 kB / 442.9 MB, free: 3.734 MB / 350.1 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 (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001625/0.4186, allocations: 0.7861 MB / 443.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005494/0.4192, allocations: 201.6 kB / 443.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004433/0.4236, allocations: 2.433 MB / 446.4 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.652e-05/0.4237, allocations: 19.98 kB / 446.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.4237, allocations: 4.094 kB / 446.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.4237, allocations: 7.969 kB / 446.4 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009073/0.4328, allocations: 5.331 MB / 451.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.4329, allocations: 4 kB / 451.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.4339, allocations: 260.2 kB / 452 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/0.4351, allocations: 464.7 kB / 452.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.4353, allocations: 39.98 kB / 452.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006908/0.4422, allocations: 6.743 MB / 459.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.4422, allocations: 11.94 kB / 459.2 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006103/0.4483, allocations: 3.636 MB / 462.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.4495, allocations: 458.6 kB / 463.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002969/0.4498, allocations: 32 kB / 463.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.451, allocations: 111.9 kB / 463.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/0.4513, allocations: 104.7 kB / 463.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.304e-05/0.4514, allocations: 43.98 kB / 463.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.4535, allocations: 1.303 MB / 464.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4535, allocations: 0 / 464.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002061/0.4555, allocations: 0.5469 MB / 465.4 MB, free: 12.55 MB / 382.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,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.0004836/0.456, allocations: 218.4 kB / 465.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004159/0.4602, allocations: 2.443 MB / 468.1 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4602, allocations: 0.9375 kB / 468.1 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.4628, allocations: 1.536 MB / 469.6 MB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/0.4661, allocations: 431.5 kB / 470.1 MB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009228/0.4754, allocations: 6.427 MB / 476.5 MB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.4772, allocations: 1.987 MB / 478.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/0.4779, allocations: 139.4 kB / 478.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4779, allocations: 0 / 478.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of Templates: time 0.2437/0.7216, allocations: 69.95 MB / 0.5357 GB, free: 146.9 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches