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.0008761/0.0008761, allocations: 83.7 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001004/0.001004, allocations: 173.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.9198/0.9198, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.883e-06/1.883e-06, allocations: 0 / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.877e-05/2.065e-05, allocations: 2.281 kB / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01044/0.01046, allocations: 10.14 MB / 334.7 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006509/0.01697, allocations: 3.725 MB / 338.4 MB, free: 1.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.01898, allocations: 75.5 kB / 338.5 MB, free: 1.801 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.021, allocations: 0.8272 MB / 339.3 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002602/0.0236, allocations: 1.036 MB / 340.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009569/0.02456, allocations: 0.5186 MB / 340.9 MB, free: 15.4 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002891/0.02745, allocations: 3.345 MB / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.02909, allocations: 1.43 MB / 345.7 MB, free: 10.55 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.03181, allocations: 2.156 MB / 347.8 MB, free: 8.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002369/0.03418, allocations: 1.562 MB / 349.4 MB, free: 6.824 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.03527, allocations: 388 kB / 349.8 MB, free: 6.445 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.03642, allocations: 0.601 MB / 350.4 MB, free: 5.844 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008767/0.0373, allocations: 1.106 MB / 351.5 MB, free: 4.734 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.03909, allocations: 1.193 MB / 352.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004575/0.04366, allocations: 5.126 MB / 357.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.04367, allocations: 4 kB / 357.8 MB, free: 14.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.04367, allocations: 0 / 357.8 MB, free: 14.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001639/0.04383, allocations: 0 / 357.8 MB, free: 14.39 MB / 330.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.006245/0.05008, allocations: 3.471 MB / 361.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.05013, allocations: 8.031 kB / 361.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004202/0.05055, allocations: 366.9 kB / 361.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.05159, allocations: 470.7 kB / 362.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.05405, allocations: 1.783 MB / 363.9 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.05416, allocations: 193.4 kB / 364.1 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.05444, allocations: 252.3 kB / 364.3 MB, free: 7.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004078/0.05851, allocations: 3.38 MB / 367.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.818e-05/0.05857, allocations: 0 / 367.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.05875, allocations: 104 kB / 367.8 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.872e-05/0.05885, allocations: 120.9 kB / 367.9 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003822/0.06267, allocations: 2.697 MB / 370.6 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/0.07444, allocations: 9.291 MB / 379.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.07589, allocations: 1.247 MB / 381.2 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.077, allocations: 0.9834 MB / 382.1 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001672/0.07717, allocations: 56.89 kB / 382.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.0772, allocations: 47.56 kB / 382.2 MB, free: 5.379 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 5.29e-06/0.07721, allocations: 0 / 382.2 MB, free: 5.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.0109/0.0881, allocations: 7.062 MB / 389.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.08814, allocations: 64.72 kB / 389.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002186/0.09033, allocations: 1.912 MB / 391.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-05/0.0904, allocations: 49.7 kB / 391.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006444/0.09105, allocations: 1.279 MB / 392.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.09134, allocations: 487.8 kB / 393.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.09165, allocations: 295.5 kB / 393.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.09173, allocations: 305.1 kB / 393.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009243/0.09265, allocations: 0.812 MB / 394.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.09377, allocations: 1.312 MB / 395.8 MB, free: 7.535 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.09607, allocations: 2.254 MB / 398 MB, free: 5.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.09609, allocations: 4 kB / 398 MB, free: 5.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.003777/0.09986, allocations: 2.728 MB / 400.8 MB, free: 2.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.09989, allocations: 12 kB / 400.8 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/0.09992, allocations: 16 kB / 400.8 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007439/0.1007, allocations: 422.5 kB / 401.2 MB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008407/0.1015, allocations: 399.3 kB / 401.6 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.1061, allocations: 5.545 MB / 407.2 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.1073, allocations: 131.8 kB / 407.3 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.1074, allocations: 68 kB / 407.3 MB, free: 11.51 MB / 378.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.001252/0.1087, allocations: 0.7886 MB / 408.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.109, allocations: 214.7 kB / 408.3 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002815/0.1118, allocations: 2.3 MB / 410.6 MB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.488e-05/0.1118, allocations: 16 kB / 410.7 MB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.1119, allocations: 8 kB / 410.7 MB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.1119, allocations: 7.969 kB / 410.7 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006459/0.1183, allocations: 4.854 MB / 415.5 MB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.1183, allocations: 4 kB / 415.5 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.1189, allocations: 256.1 kB / 415.8 MB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007417/0.1197, allocations: 458.1 kB / 416.2 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-05/0.1198, allocations: 35.97 kB / 416.3 MB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005223/0.125, allocations: 6.979 MB / 423.2 MB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.125, allocations: 7.938 kB / 423.3 MB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004167/0.1292, allocations: 3.489 MB / 426.7 MB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000789/0.1299, allocations: 386.5 kB / 427.1 MB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.1301, allocations: 31.94 kB / 427.2 MB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006432/0.1308, allocations: 99.88 kB / 427.2 MB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.131, allocations: 116.7 kB / 427.4 MB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-05/0.1311, allocations: 40.11 kB / 427.4 MB, free: 6.859 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001569/0.1326, allocations: 1.307 MB / 428.7 MB, free: 5.562 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1326, allocations: 0 / 428.7 MB, free: 5.562 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00145/0.1341, allocations: 0.543 MB / 429.3 MB, free: 5.02 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.004426/0.1385, allocations: 4.174 MB / 433.4 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.1413, allocations: 2.259 MB / 435.7 MB, free: 14.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.1413, allocations: 8.062 kB / 435.7 MB, free: 14.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.1428, allocations: 1.439 MB / 437.1 MB, free: 12.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.1444, allocations: 454.7 kB / 437.6 MB, free: 12.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1773/0.3217, allocations: 20.36 MB / 457.9 MB, free: 111.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/0.3233, allocations: 1.452 MB / 459.4 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001548/0.3249, allocations: 434.6 kB / 459.8 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/0.3261, allocations: 0.9956 MB / 460.8 MB, free: 110 MB / 410.7 MB Notification: Performance of SimCode: time 1.904e-06/0.3261, allocations: 0 / 460.8 MB, free: 110 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06454/0.3906, allocations: 52.22 MB / 0.501 GB, free: 60.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/8.763, allocations: 11.72 kB / 0.501 GB, free: 60.19 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/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] "" 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.701667997054756]