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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001722/0.001722, allocations: 116.5 kB / 20.43 MB, free: 1.305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002069/0.002069, allocations: 206.6 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 55.91 kB / 377.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2978, allocations: 53.41 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01448/0.3123, allocations: 11.62 MB / 442.8 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008432/0.3207, allocations: 3.96 MB / 446.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002518/0.3233, allocations: 75.56 kB / 446.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.326, allocations: 0.8772 MB / 447.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004017/0.33, allocations: 1.002 MB / 448.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.3316, allocations: 0.5265 MB / 449.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004829/0.3364, allocations: 3.23 MB / 452.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.3387, allocations: 1.473 MB / 454 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.3417, allocations: 1.48 MB / 455.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003968/0.3456, allocations: 1.864 MB / 457.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007444/0.3464, allocations: 384 kB / 457.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.348, allocations: 0.6791 MB / 458.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001212/0.3492, allocations: 1.095 MB / 459.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002345/0.3515, allocations: 1.719 MB / 461.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006519/0.3581, allocations: 5.076 MB / 466.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3581, allocations: 0 / 466.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3581, allocations: 0 / 466.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001306/0.3582, allocations: 0 / 466.2 MB, free: 3.426 MB / 366.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.008206/0.3664, allocations: 3.503 MB / 469.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.3665, allocations: 12.03 kB / 469.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005206/0.367, allocations: 362.9 kB / 470.1 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.3687, allocations: 462.7 kB / 470.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00355/0.3722, allocations: 1.787 MB / 472.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.3724, allocations: 197 kB / 472.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003806/0.3728, allocations: 259.9 kB / 472.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005778/0.3786, allocations: 3.243 MB / 476 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.301e-05/0.3786, allocations: 7.984 kB / 476.1 MB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.3789, allocations: 100 kB / 476.2 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/0.379, allocations: 112.9 kB / 476.3 MB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004864/0.3839, allocations: 2.701 MB / 479 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01805/0.4019, allocations: 10.11 MB / 489.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.4042, allocations: 1.244 MB / 490.3 MB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.4061, allocations: 0.9835 MB / 491.3 MB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/0.4063, allocations: 56.95 kB / 491.4 MB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.4064, allocations: 43.56 kB / 491.4 MB, free: 9.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.146e-06/0.4064, allocations: 0 / 491.4 MB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01868/0.4251, allocations: 7.079 MB / 498.5 MB, free: 2.617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.4251, allocations: 64.72 kB / 498.5 MB, free: 2.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003291/0.4284, allocations: 1.889 MB / 0.4887 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.4285, allocations: 49.7 kB / 0.4888 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.4297, allocations: 1.276 MB / 0.49 GB, free: 15.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005182/0.4302, allocations: 495.9 kB / 0.4905 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005087/0.4307, allocations: 299.4 kB / 0.4908 GB, free: 14.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4309, allocations: 301.1 kB / 0.491 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.4324, allocations: 0.8237 MB / 0.4918 GB, free: 13.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.4342, allocations: 1.308 MB / 0.4931 GB, free: 11.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003495/0.4377, allocations: 2.258 MB / 0.4953 GB, free: 9.402 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4377, allocations: 4 kB / 0.4953 GB, free: 9.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005466/0.4432, allocations: 2.72 MB / 0.498 GB, free: 6.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.4432, allocations: 12 kB / 0.498 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.034e-05/0.4433, allocations: 16 kB / 0.498 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.4444, allocations: 426.4 kB / 0.4984 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.4459, allocations: 399.3 kB / 0.4988 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006977/0.4529, allocations: 5.588 MB / 0.5043 GB, free: 0 / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.4548, allocations: 123.9 kB / 0.5044 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.455, allocations: 71.98 kB / 0.5044 GB, free: 15.81 MB / 430.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.001572/0.4566, allocations: 0.794 MB / 0.5052 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004927/0.457, allocations: 206.7 kB / 0.5054 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004512/0.4616, allocations: 2.308 MB / 0.5077 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/0.4616, allocations: 12 kB / 0.5077 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.4616, allocations: 11.94 kB / 0.5077 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.4616, allocations: 11.97 kB / 0.5077 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.4717, allocations: 5.154 MB / 0.5127 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4717, allocations: 4 kB / 0.5127 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.4728, allocations: 247.6 kB / 0.513 GB, free: 6.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.4741, allocations: 454.2 kB / 0.5134 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.4742, allocations: 39.98 kB / 0.5135 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008347/0.4826, allocations: 7.022 MB / 0.5203 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/0.4826, allocations: 19.81 kB / 0.5203 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/0.489, allocations: 3.508 MB / 0.5238 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.4904, allocations: 378.6 kB / 0.5241 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.4907, allocations: 39.92 kB / 0.5242 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.4918, allocations: 99.89 kB / 0.5242 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003043/0.4921, allocations: 108.7 kB / 0.5244 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4922, allocations: 47.98 kB / 0.5244 GB, free: 10.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.4943, allocations: 1.303 MB / 0.5257 GB, free: 9.484 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4943, allocations: 4 kB / 0.5257 GB, free: 9.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001896/0.4962, allocations: 0.5429 MB / 0.5262 GB, free: 8.938 MB / 446.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.006694/0.5029, allocations: 4.162 MB / 0.5303 GB, free: 4.684 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004474/0.5074, allocations: 2.269 MB / 0.5325 GB, free: 2.391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5074, allocations: 0 / 0.5325 GB, free: 2.391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.51, allocations: 1.448 MB / 0.5339 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.5124, allocations: 447 kB / 0.5343 GB, free: 488 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.253/0.7654, allocations: 20.4 MB / 0.5542 GB, free: 92.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/0.7667, allocations: 2.016 MB / 0.5562 GB, free: 90.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.7678, allocations: 425.4 kB / 0.5566 GB, free: 90.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009639/0.7688, allocations: 0.9952 MB / 0.5576 GB, free: 89.21 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7688, allocations: 4 kB / 0.5576 GB, free: 89.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0931/0.8619, allocations: 50.64 MB / 0.607 GB, free: 38.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/16.47, allocations: 7.438 kB / 0.6071 GB, free: 38.92 MB / 446.1 MB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable constantSpeed.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.135239410003123]