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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009086/0.0009086, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009221/0.0009221, allocations: 153 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9039/0.9039, allocations: 173.3 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422e-05/1.589e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009412/0.009428, allocations: 10.09 MB / 328.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006128/0.01556, allocations: 3.667 MB / 332.2 MB, free: 8.543 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006827/0.01624, allocations: 79.5 kB / 332.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.01742, allocations: 0.8194 MB / 333.1 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.01881, allocations: 1.028 MB / 334.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006279/0.01944, allocations: 0.5224 MB / 334.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002018/0.02146, allocations: 3.314 MB / 338 MB, free: 2.754 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.02273, allocations: 1.419 MB / 339.4 MB, free: 1.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.02423, allocations: 2.152 MB / 341.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.02548, allocations: 1.555 MB / 343.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002829/0.02576, allocations: 388 kB / 343.5 MB, free: 13.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006042/0.02637, allocations: 0.6048 MB / 344.1 MB, free: 12.56 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006126/0.02698, allocations: 1.11 MB / 345.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007348/0.02771, allocations: 1.189 MB / 346.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.03068, allocations: 5.102 MB / 351.5 MB, free: 5.141 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.03068, allocations: 0 / 351.5 MB, free: 5.141 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.03068, allocations: 4 kB / 351.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.03071, allocations: 0 / 351.5 MB, free: 5.137 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.003664/0.03437, allocations: 3.452 MB / 354.9 MB, free: 1.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.03442, allocations: 12.92 kB / 354.9 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003139/0.03473, allocations: 358.9 kB / 355.3 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006851/0.03542, allocations: 430.7 kB / 355.7 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.0373, allocations: 1.768 MB / 357.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.773e-05/0.0374, allocations: 197.4 kB / 357.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002389/0.03764, allocations: 259.9 kB / 357.9 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003241/0.04088, allocations: 3.369 MB / 361.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.035e-05/0.04092, allocations: 7.984 kB / 361.3 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.04108, allocations: 104 kB / 361.4 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.503e-05/0.04116, allocations: 120.9 kB / 361.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.04399, allocations: 2.697 MB / 364.2 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009114/0.0531, allocations: 9.294 MB / 373.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.05446, allocations: 1.242 MB / 374.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.05552, allocations: 0.9719 MB / 375.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001592/0.05568, allocations: 56.95 kB / 375.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.05571, allocations: 43.56 kB / 375.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 2.825e-06/0.05571, allocations: 0 / 375.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.009951/0.06566, allocations: 7.086 MB / 382.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.06571, allocations: 64.72 kB / 383 MB, free: 5.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.06773, allocations: 1.892 MB / 384.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.505e-05/0.06781, allocations: 57.69 kB / 384.9 MB, free: 3.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007735/0.06858, allocations: 1.268 MB / 386.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000272/0.06885, allocations: 483.9 kB / 386.7 MB, free: 1.309 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003328/0.06919, allocations: 303.4 kB / 387 MB, free: 1.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.733e-05/0.06927, allocations: 305.1 kB / 387.3 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.07031, allocations: 0.8159 MB / 388.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.07141, allocations: 1.304 MB / 389.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00233/0.07375, allocations: 2.258 MB / 391.6 MB, free: 11.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.07375, allocations: 4 kB / 391.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00288/0.07663, allocations: 2.72 MB / 394.4 MB, free: 9.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.07666, allocations: 12.28 kB / 394.4 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.07668, allocations: 20 kB / 394.4 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006435/0.07733, allocations: 414.2 kB / 394.8 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008082/0.07813, allocations: 403.3 kB / 395.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.08246, allocations: 5.553 MB / 400.7 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008008/0.08326, allocations: 123.8 kB / 400.9 MB, free: 2.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.435e-05/0.08335, allocations: 75.98 kB / 400.9 MB, free: 2.34 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 (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.0009799/0.08433, allocations: 0.7823 MB / 401.7 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.08455, allocations: 210.8 kB / 401.9 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.08703, allocations: 2.304 MB / 404.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/0.08705, allocations: 16 kB / 404.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.08706, allocations: 4 kB / 404.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.08707, allocations: 11.91 kB / 404.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005338/0.09241, allocations: 4.849 MB / 409.1 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.09241, allocations: 4 kB / 409.1 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005358/0.09295, allocations: 247.6 kB / 409.4 MB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006493/0.0936, allocations: 466.5 kB / 409.8 MB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.09366, allocations: 35.98 kB / 409.8 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004603/0.09826, allocations: 6.97 MB / 416.8 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.09827, allocations: 7.938 kB / 416.8 MB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.102, allocations: 3.493 MB / 420.3 MB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005564/0.1025, allocations: 374.6 kB / 420.7 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.1027, allocations: 35.98 kB / 420.7 MB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.1032, allocations: 99.89 kB / 420.8 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.1034, allocations: 112.7 kB / 420.9 MB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.858e-05/0.1035, allocations: 43.98 kB / 421 MB, free: 13.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001281/0.1048, allocations: 1.291 MB / 422.3 MB, free: 12.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1048, allocations: 0 / 422.3 MB, free: 12.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001306/0.1061, allocations: 0.5507 MB / 422.8 MB, free: 11.88 MB / 394.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 (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.004027/0.1101, allocations: 4.162 MB / 427 MB, free: 7.633 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.1126, allocations: 2.271 MB / 429.2 MB, free: 5.332 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1126, allocations: 4 kB / 429.2 MB, free: 5.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.114, allocations: 1.455 MB / 430.7 MB, free: 3.836 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.1152, allocations: 443.8 kB / 431.1 MB, free: 3.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.169/0.2842, allocations: 20.3 MB / 451.4 MB, free: 118.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.2854, allocations: 1.45 MB / 452.9 MB, free: 118.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001037/0.2864, allocations: 426.1 kB / 453.3 MB, free: 118.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008197/0.2872, allocations: 1 MB / 454.3 MB, free: 118.3 MB / 410.7 MB Notification: Performance of SimCode: time 2.064e-06/0.2872, allocations: 0 / 454.3 MB, free: 118.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05372/0.3409, allocations: 52.04 MB / 0.4945 GB, free: 72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.48/8.821, allocations: 15.92 kB / 0.4945 GB, free: 71.98 MB / 410.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/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","/var/lib/jenkins/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) [Timeout 660] "Error: Could not read variable constantSpeed.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference: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] Variables in the result:time,smee.idq_dr[1],smee.idq_rr[2],smee.idq_sr[1],smee.idq_sr[2],smee.phiMechanical [Calling sys.exit(0), Time elapsed: 11.788129728287458]