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.001707/0.001707, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001894/0.001894, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.394/1.394, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001494/0.001494, allocations: 51.91 kB / 365.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01375/0.1172, allocations: 11.52 MB / 429.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007587/0.1248, allocations: 3.873 MB / 433.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.1265, allocations: 79.5 kB / 433.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.1287, allocations: 0.8619 MB / 434.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002955/0.1317, allocations: 0.9863 MB / 435.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.1329, allocations: 0.511 MB / 435.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004121/0.137, allocations: 3.205 MB / 438.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00251/0.1395, allocations: 1.859 MB / 440.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002033/0.1416, allocations: 1.464 MB / 442.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002507/0.1441, allocations: 1.849 MB / 444 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005461/0.1446, allocations: 392 kB / 444.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.1457, allocations: 0.644 MB / 445 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1468, allocations: 1.075 MB / 446.1 MB, free: 112 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1999/0.3468, allocations: 1.724 MB / 447.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005001/0.3518, allocations: 5.056 MB / 452.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3518, allocations: 1.562 kB / 452.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3518, allocations: 0 / 452.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.3519, allocations: 7.531 kB / 452.9 MB, free: 12.25 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.007146/0.359, allocations: 3.556 MB / 456.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3591, allocations: 10.69 kB / 456.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005205/0.3596, allocations: 363 kB / 456.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.361, allocations: 429 kB / 457.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.364, allocations: 1.841 MB / 459.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.3641, allocations: 186.4 kB / 459.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003728/0.3645, allocations: 258.9 kB / 459.5 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004943/0.3694, allocations: 3.247 MB / 462.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-05/0.3695, allocations: 10.33 kB / 462.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/0.3697, allocations: 110.3 kB / 462.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000127/0.3698, allocations: 114.8 kB / 463 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00417/0.374, allocations: 2.698 MB / 465.7 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/0.3877, allocations: 10.29 MB / 476 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.3895, allocations: 1.707 MB / 477.7 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.3911, allocations: 0.99 MB / 478.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002415/0.3913, allocations: 201.2 kB / 478.9 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3914, allocations: 44.12 kB / 478.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.176e-06/0.3914, allocations: 1.375 kB / 478.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01758/0.4089, allocations: 7.46 MB / 486.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.409, allocations: 65.22 kB / 486.4 MB, free: 12.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00259/0.4116, allocations: 1.872 MB / 488.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.4117, allocations: 53.61 kB / 488.4 MB, free: 11.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009987/0.4127, allocations: 1.271 MB / 489.6 MB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.4131, allocations: 497.4 kB / 490.1 MB, free: 9.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004648/0.4136, allocations: 295.8 kB / 490.4 MB, free: 9.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4137, allocations: 305.1 kB / 490.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.415, allocations: 0.8157 MB / 491.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001732/0.4167, allocations: 1.311 MB / 492.8 MB, free: 7.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/0.4201, allocations: 2.257 MB / 495.1 MB, free: 5.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.4201, allocations: 8 kB / 495.1 MB, free: 5.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005297/0.4254, allocations: 2.789 MB / 497.9 MB, free: 2.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.4255, allocations: 12 kB / 497.9 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.4255, allocations: 19.98 kB / 497.9 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.4266, allocations: 425 kB / 498.3 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.4281, allocations: 399.3 kB / 498.7 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006764/0.4348, allocations: 5.794 MB / 0.4927 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.4368, allocations: 123.8 kB / 0.4928 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.437, allocations: 71.98 kB / 0.4929 GB, free: 11.62 MB / 398.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.00147/0.4385, allocations: 0.7829 MB / 0.4936 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005114/0.439, allocations: 212.1 kB / 0.4938 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.4435, allocations: 2.381 MB / 0.4962 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.717e-05/0.4435, allocations: 25.52 kB / 0.4962 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4435, allocations: 4 kB / 0.4962 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.4435, allocations: 7.922 kB / 0.4962 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.4529, allocations: 5.256 MB / 0.5013 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.4529, allocations: 4.062 kB / 0.5013 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.454, allocations: 250.1 kB / 0.5016 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.4553, allocations: 461.7 kB / 0.502 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.4554, allocations: 43.98 kB / 0.5021 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008043/0.4634, allocations: 7.336 MB / 0.5092 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.4634, allocations: 4 kB / 0.5092 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006382/0.4698, allocations: 3.577 MB / 0.5127 GB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.471, allocations: 451.9 kB / 0.5132 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/0.4712, allocations: 35.98 kB / 0.5132 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.4724, allocations: 107.8 kB / 0.5133 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.4727, allocations: 108.4 kB / 0.5134 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4728, allocations: 47.28 kB / 0.5134 GB, free: 6.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002037/0.4748, allocations: 1.294 MB / 0.5147 GB, free: 4.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4748, allocations: 7.562 kB / 0.5147 GB, free: 4.727 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002017/0.4769, allocations: 0.539 MB / 0.5152 GB, free: 4.188 MB / 414.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.006684/0.4835, allocations: 4.238 MB / 0.5194 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0043/0.4878, allocations: 2.348 MB / 0.5217 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/0.4878, allocations: 4 kB / 0.5217 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.4905, allocations: 1.44 MB / 0.5231 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/0.4931, allocations: 445.6 kB / 0.5235 GB, free: 11.67 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/0.5264, allocations: 20.47 MB / 0.5435 GB, free: 6.555 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/0.5284, allocations: 2.007 MB / 0.5455 GB, free: 4.516 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001359/0.5297, allocations: 426.4 kB / 0.5459 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/0.5311, allocations: 0.9991 MB / 0.5468 GB, free: 3.098 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5311, allocations: 0 / 0.5468 GB, free: 3.098 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/0.6374, allocations: 49.19 MB / 0.5949 GB, free: 2.391 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.43, allocations: 7.922 kB / 0.5949 GB, free: 2.383 MB / 494.1 MB " [Timeout remaining time 645] (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/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) [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] Reference file matches [Calling sys.exit(0), Time elapsed: 18.04110471578315]