Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 205.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2533, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01536/0.2686, allocations: 10.14 MB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008814/0.2775, allocations: 3.71 MB / 444.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002236/0.2797, allocations: 75.5 kB / 445 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.282, allocations: 0.8233 MB / 445.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.2852, allocations: 0.9979 MB / 446.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.2866, allocations: 0.5149 MB / 447.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003959/0.2905, allocations: 3.23 MB / 450.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002147/0.2927, allocations: 1.477 MB / 452.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.2949, allocations: 1.48 MB / 453.5 MB, free: 84 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.2976, allocations: 1.86 MB / 455.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006998/0.2983, allocations: 388 kB / 455.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.2996, allocations: 0.6284 MB / 456.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001221/0.3008, allocations: 1.079 MB / 457.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001967/0.3028, allocations: 1.396 MB / 458.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006182/0.309, allocations: 5.095 MB / 464 MB, free: 5.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.309, allocations: 4 kB / 464 MB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.309, allocations: 0 / 464 MB, free: 5.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000144/0.3091, allocations: 0 / 464 MB, free: 5.605 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.008835/0.318, allocations: 3.499 MB / 467.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.318, allocations: 8.031 kB / 467.5 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005635/0.3186, allocations: 366.9 kB / 467.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.3203, allocations: 462.7 kB / 468.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004378/0.3246, allocations: 1.791 MB / 470.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.3248, allocations: 189 kB / 470.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004624/0.3253, allocations: 259.9 kB / 470.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006119/0.3314, allocations: 3.369 MB / 473.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.016e-05/0.3315, allocations: 4 kB / 473.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002319/0.3317, allocations: 100 kB / 474 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.3319, allocations: 124.9 kB / 474.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005071/0.3369, allocations: 2.697 MB / 476.8 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/0.3553, allocations: 9.292 MB / 486.1 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002313/0.3576, allocations: 1.245 MB / 487.4 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.3595, allocations: 0.9797 MB / 488.3 MB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/0.3598, allocations: 56.89 kB / 488.4 MB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.739e-05/0.3598, allocations: 47.56 kB / 488.4 MB, free: 12.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.597e-06/0.3598, allocations: 0 / 488.4 MB, free: 12.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01882/0.3787, allocations: 7.077 MB / 495.5 MB, free: 5.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.3787, allocations: 68.72 kB / 495.6 MB, free: 5.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/0.382, allocations: 1.908 MB / 497.5 MB, free: 3.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.3822, allocations: 53.7 kB / 497.5 MB, free: 3.426 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.3833, allocations: 1.272 MB / 498.8 MB, free: 2.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005762/0.3839, allocations: 495.8 kB / 499.3 MB, free: 1.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005195/0.3844, allocations: 303.4 kB / 499.6 MB, free: 1.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3846, allocations: 305.1 kB / 499.9 MB, free: 1.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.3862, allocations: 0.8159 MB / 0.489 GB, free: 236 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.3881, allocations: 1.304 MB / 0.4902 GB, free: 14.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003522/0.3916, allocations: 2.25 MB / 0.4924 GB, free: 12.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.3916, allocations: 8 kB / 0.4925 GB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005473/0.3971, allocations: 2.728 MB / 0.4951 GB, free: 9.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.3972, allocations: 12 kB / 0.4951 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-05/0.3972, allocations: 16 kB / 0.4951 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.3983, allocations: 414.5 kB / 0.4955 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.3999, allocations: 403.3 kB / 0.4959 GB, free: 8.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006815/0.4067, allocations: 5.549 MB / 0.5013 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.4085, allocations: 127.9 kB / 0.5015 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/0.4087, allocations: 71.98 kB / 0.5015 GB, free: 2.684 MB / 414.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.001499/0.4102, allocations: 0.7807 MB / 0.5023 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005307/0.4107, allocations: 214.7 kB / 0.5025 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/0.4152, allocations: 2.312 MB / 0.5048 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.235e-05/0.4152, allocations: 16 kB / 0.5048 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.4152, allocations: 15.92 kB / 0.5048 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.4152, allocations: 3.984 kB / 0.5048 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.4254, allocations: 4.85 MB / 0.5095 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.978e-05/0.4255, allocations: 7.938 kB / 0.5095 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.4265, allocations: 252.2 kB / 0.5098 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4278, allocations: 454.1 kB / 0.5102 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.4279, allocations: 39.98 kB / 0.5102 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008204/0.4361, allocations: 6.966 MB / 0.5171 GB, free: 2.289 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.4361, allocations: 11.88 kB / 0.5171 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006644/0.4428, allocations: 3.512 MB / 0.5205 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.4442, allocations: 382.6 kB / 0.5209 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003839/0.4446, allocations: 31.98 kB / 0.5209 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.4457, allocations: 95.89 kB / 0.521 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002921/0.446, allocations: 112.7 kB / 0.5211 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.4461, allocations: 51.92 kB / 0.5211 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002337/0.4484, allocations: 1.307 MB / 0.5224 GB, free: 12.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4484, allocations: 3.938 kB / 0.5224 GB, free: 12.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002353/0.4508, allocations: 0.5508 MB / 0.523 GB, free: 12.17 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.007065/0.4579, allocations: 4.154 MB / 0.527 GB, free: 7.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004716/0.4626, allocations: 2.271 MB / 0.5292 GB, free: 5.617 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/0.4626, allocations: 128 / 0.5292 GB, free: 5.617 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.4654, allocations: 1.459 MB / 0.5307 GB, free: 4.117 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.468, allocations: 447.7 kB / 0.5311 GB, free: 3.688 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2453/0.7133, allocations: 20.37 MB / 0.551 GB, free: 94.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.7148, allocations: 1.453 MB / 0.5524 GB, free: 93.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.716, allocations: 435.4 kB / 0.5528 GB, free: 93.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/0.7171, allocations: 0.9947 MB / 0.5538 GB, free: 92.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.693e-06/0.7171, allocations: 0 / 0.5538 GB, free: 92.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1175/0.8346, allocations: 52.85 MB / 0.6054 GB, free: 39.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.04, allocations: 16.84 kB / 0.6054 GB, free: 39.85 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.786358714016387]