Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001853/0.001853, allocations: 191 kB / 18.63 MB, free: 4.367 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.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 51.11 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1325, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01334/0.1458, allocations: 11.46 MB / 363 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008545/0.1544, allocations: 3.881 MB / 366.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002444/0.1569, allocations: 59.75 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.1594, allocations: 0.8307 MB / 367.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003587/0.163, allocations: 0.9394 MB / 368.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.1643, allocations: 0.513 MB / 369.2 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1838/0.3481, allocations: 3.199 MB / 372.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003217/0.3514, allocations: 2.584 MB / 375 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002384/0.3538, allocations: 1.429 MB / 376.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003313/0.3571, allocations: 1.817 MB / 378.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.3582, allocations: 387.9 kB / 378.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001849/0.36, allocations: 0.6235 MB / 379.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.3613, allocations: 1.068 MB / 380.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002973/0.3643, allocations: 1.721 MB / 382 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007189/0.3715, allocations: 5.045 MB / 387.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3716, allocations: 0 / 387.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3716, allocations: 0 / 387.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000183/0.3718, allocations: 4 kB / 387.1 MB, free: 8.273 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.009508/0.3813, allocations: 3.478 MB / 390.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3813, allocations: 9.219 kB / 390.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.3829, allocations: 409.4 kB / 390.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.3865, allocations: 1.831 MB / 392.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.3867, allocations: 193 kB / 393 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004134/0.3871, allocations: 251 kB / 393.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005313/0.3924, allocations: 3.249 MB / 396.5 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.064e-05/0.3925, allocations: 7.25 kB / 396.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.3927, allocations: 103.8 kB / 396.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.3928, allocations: 115.5 kB / 396.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004004/0.3968, allocations: 2.7 MB / 399.4 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.4128, allocations: 10.25 MB / 409.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/0.415, allocations: 1.78 MB / 411.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4167, allocations: 1.057 MB / 412.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002958/0.417, allocations: 207.1 kB / 412.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4171, allocations: 47.56 kB / 412.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.316e-06/0.4171, allocations: 0 / 412.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01767/0.4348, allocations: 7.417 MB / 420.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.4348, allocations: 64.72 kB / 420.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003228/0.4381, allocations: 1.865 MB / 422.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.4383, allocations: 57 kB / 422.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009182/0.4392, allocations: 1.24 MB / 423.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003848/0.4396, allocations: 470.5 kB / 423.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004977/0.4401, allocations: 295.3 kB / 424.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4402, allocations: 313.1 kB / 424.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4415, allocations: 0.8081 MB / 425.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.4432, allocations: 1.312 MB / 426.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/0.4462, allocations: 2.259 MB / 428.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.4462, allocations: 4 kB / 428.8 MB, free: 3 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005172/0.4514, allocations: 2.793 MB / 431.6 MB, free: 280 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.4514, allocations: 16.03 kB / 431.6 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.4515, allocations: 12 kB / 431.6 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.4525, allocations: 427.3 kB / 432 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.454, allocations: 400.2 kB / 432.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006122/0.4601, allocations: 5.79 MB / 438.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.4619, allocations: 119.7 kB / 438.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.462, allocations: 75.98 kB / 438.4 MB, free: 9.227 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.001364/0.4634, allocations: 0.7885 MB / 439.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004052/0.4638, allocations: 193.7 kB / 439.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.4676, allocations: 2.392 MB / 441.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.581e-05/0.4677, allocations: 16 kB / 441.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4677, allocations: 4 kB / 441.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4677, allocations: 7.969 kB / 441.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007884/0.4756, allocations: 5.272 MB / 447.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.4756, allocations: 7.938 kB / 447.1 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.4766, allocations: 253.6 kB / 447.3 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.4777, allocations: 461 kB / 447.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.17e-05/0.4778, allocations: 35.98 kB / 447.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006765/0.4846, allocations: 7.339 MB / 455.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4846, allocations: 4 kB / 455.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/0.4899, allocations: 3.574 MB / 458.7 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.491, allocations: 458.1 kB / 459.2 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/0.4912, allocations: 34.34 kB / 459.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.4923, allocations: 99.88 kB / 459.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.4926, allocations: 108.3 kB / 459.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.4927, allocations: 43.98 kB / 459.5 MB, free: 3.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.4946, allocations: 1.291 MB / 460.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4946, allocations: 0 / 460.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001918/0.4965, allocations: 0.543 MB / 461.3 MB, free: 1.797 MB / 366.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.0004199/0.497, allocations: 222.7 kB / 461.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003908/0.5009, allocations: 2.429 MB / 463.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.5009, allocations: 0 / 463.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002312/0.5032, allocations: 1.507 MB / 465.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.5053, allocations: 437 kB / 465.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007827/0.5131, allocations: 5.112 MB / 471 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/0.515, allocations: 2.01 MB / 473 MB, free: 6.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.5163, allocations: 431.6 kB / 473.4 MB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/0.5167, allocations: 135.4 kB / 473.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5167, allocations: 0 / 473.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of Templates: time 0.0461/0.5628, allocations: 27.98 MB / 0.4898 GB, free: 9.82 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches