Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001875/0.001875, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001562/0.001562, allocations: 202.2 kB / 23.72 MB, free: 4.391 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: 7.738 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.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 63.91 kB / 377.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2457, allocations: 53.41 MB / 431.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01384/0.2596, allocations: 9.051 MB / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007291/0.2669, allocations: 3.131 MB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.2685, allocations: 75.5 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.2705, allocations: 0.6908 MB / 444.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00288/0.2734, allocations: 0.8893 MB / 445 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.2744, allocations: 427.4 kB / 445.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003932/0.2784, allocations: 3 MB / 448.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.2805, allocations: 1.333 MB / 449.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.2826, allocations: 1.398 MB / 451.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002812/0.2854, allocations: 1.662 MB / 452.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008249/0.2862, allocations: 352 kB / 453.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.2875, allocations: 463.8 kB / 453.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.289, allocations: 1.036 MB / 454.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.2908, allocations: 1.303 MB / 455.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006104/0.2969, allocations: 4.741 MB / 460.7 MB, free: 8.746 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2969, allocations: 0 / 460.7 MB, free: 8.746 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2969, allocations: 0 / 460.7 MB, free: 8.746 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001366/0.2971, allocations: 0 / 460.7 MB, free: 8.746 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.0075/0.3046, allocations: 3.284 MB / 464 MB, free: 5.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3046, allocations: 11.98 kB / 464 MB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005049/0.3051, allocations: 341.6 kB / 464.3 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.3063, allocations: 378.8 kB / 464.7 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00415/0.3104, allocations: 1.709 MB / 466.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.3107, allocations: 180.6 kB / 466.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008025/0.3115, allocations: 228 kB / 466.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006615/0.3181, allocations: 3.237 MB / 470 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.218e-05/0.3182, allocations: 7.953 kB / 470 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002606/0.3184, allocations: 99.98 kB / 470.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.3186, allocations: 104.6 kB / 470.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005732/0.3243, allocations: 2.692 MB / 472.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/0.3427, allocations: 8.746 MB / 481.7 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/0.3454, allocations: 1.407 MB / 483.1 MB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00207/0.3475, allocations: 1.043 MB / 484.1 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002555/0.3477, allocations: 44.97 kB / 484.2 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/0.3478, allocations: 47.56 kB / 484.2 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.927e-06/0.3478, allocations: 0 / 484.2 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01479/0.3626, allocations: 6.354 MB / 490.6 MB, free: 10.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.3626, allocations: 68.72 kB / 490.6 MB, free: 10.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.3654, allocations: 1.779 MB / 492.4 MB, free: 8.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.3655, allocations: 49.7 kB / 492.5 MB, free: 8.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.3665, allocations: 1.186 MB / 493.6 MB, free: 7.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004892/0.367, allocations: 475.9 kB / 494.1 MB, free: 6.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004824/0.3675, allocations: 291.5 kB / 494.4 MB, free: 6.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3676, allocations: 305.1 kB / 494.7 MB, free: 6.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.369, allocations: 0.7925 MB / 495.5 MB, free: 5.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.3707, allocations: 1.205 MB / 496.7 MB, free: 3.953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.374, allocations: 2.09 MB / 498.8 MB, free: 1.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.374, allocations: 8 kB / 498.8 MB, free: 1.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00495/0.379, allocations: 2.608 MB / 0.4896 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.379, allocations: 8 kB / 0.4896 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.379, allocations: 12 kB / 0.4897 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3801, allocations: 415.5 kB / 0.4901 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.3815, allocations: 363.4 kB / 0.4904 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007972/0.3895, allocations: 6.723 MB / 0.497 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.391, allocations: 103.9 kB / 0.4971 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.3912, allocations: 67.97 kB / 0.4971 GB, free: 7.035 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001465/0.3927, allocations: 0.8018 MB / 0.4979 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004648/0.3931, allocations: 194.7 kB / 0.4981 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00444/0.3976, allocations: 2.3 MB / 0.5003 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.3976, allocations: 12 kB / 0.5004 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.3976, allocations: 4 kB / 0.5004 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.3976, allocations: 11.97 kB / 0.5004 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009738/0.4074, allocations: 4.721 MB / 0.505 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.4074, allocations: 4 kB / 0.505 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.4085, allocations: 240 kB / 0.5052 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.4096, allocations: 455 kB / 0.5057 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4097, allocations: 35.98 kB / 0.5057 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009172/0.4189, allocations: 8.179 MB / 0.5137 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4189, allocations: 4 kB / 0.5137 GB, free: 5.477 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005995/0.4249, allocations: 3.435 MB / 0.517 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.426, allocations: 374.6 kB / 0.5174 GB, free: 1.602 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.4263, allocations: 35.98 kB / 0.5174 GB, free: 1.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009318/0.4273, allocations: 79.91 kB / 0.5175 GB, free: 1.488 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003023/0.4276, allocations: 132.7 kB / 0.5176 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.92e-05/0.4277, allocations: 39.98 kB / 0.5177 GB, free: 1.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.4296, allocations: 1.203 MB / 0.5188 GB, free: 128 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4296, allocations: 0 / 0.5188 GB, free: 128 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001779/0.4313, allocations: 0.5078 MB / 0.5193 GB, free: 15.61 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.006424/0.4378, allocations: 4.087 MB / 0.5233 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004317/0.4421, allocations: 2.316 MB / 0.5256 GB, free: 9.098 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.4421, allocations: 0 / 0.5256 GB, free: 9.098 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002784/0.4449, allocations: 1.559 MB / 0.5271 GB, free: 7.488 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.4472, allocations: 483.6 kB / 0.5276 GB, free: 7.023 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2278/0.675, allocations: 19.39 MB / 0.5465 GB, free: 97.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.6762, allocations: 1.441 MB / 0.5479 GB, free: 96.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.6774, allocations: 447.4 kB / 0.5483 GB, free: 96.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.6784, allocations: 0.9272 MB / 0.5492 GB, free: 95.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6784, allocations: 0 / 0.5492 GB, free: 95.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09287/0.7713, allocations: 51.44 MB / 0.5995 GB, free: 45.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.34, allocations: 11.91 kB / 0.5995 GB, free: 45.25 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv failed! Error: Could not read variable smr.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv. Warning: Get data of variable smr.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv failed! Error: Could not read variable smr.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv. Warning: Get data of variable smr.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv failed! Error: Could not read variable smr.idq_rr[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv. Warning: Get data of variable smr.idq_rr[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv failed! Error: Could not read variable smr.idq_rr[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv. Warning: Get data of variable smr.idq_rr[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.006641254294664]