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.001743/0.001743, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002331/0.002331, allocations: 212.4 kB / 23.74 MB, free: 4.672 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.51/1.51, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.001874/0.001874, allocations: 59.91 kB / 377.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.307, allocations: 53.41 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01268/0.3196, allocations: 10.33 MB / 441.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006815/0.3265, allocations: 3.333 MB / 444.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001595/0.3281, allocations: 79.5 kB / 444.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.3301, allocations: 0.7376 MB / 445.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002763/0.3328, allocations: 0.8933 MB / 446.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.3338, allocations: 435.2 kB / 447 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003887/0.3377, allocations: 2.996 MB / 450 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002064/0.3398, allocations: 1.384 MB / 451.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.3422, allocations: 1.394 MB / 452.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00308/0.3452, allocations: 1.744 MB / 454.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007202/0.346, allocations: 352 kB / 454.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.3472, allocations: 479.8 kB / 455.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.3483, allocations: 1.028 MB / 456.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.3504, allocations: 1.61 MB / 458 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007154/0.3576, allocations: 4.714 MB / 462.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.3576, allocations: 0 / 462.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3576, allocations: 4 kB / 462.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001734/0.3578, allocations: 0 / 462.7 MB, free: 7.012 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.008586/0.3664, allocations: 3.28 MB / 466 MB, free: 3.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.3664, allocations: 8.031 kB / 466 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005923/0.367, allocations: 341.5 kB / 466.3 MB, free: 3.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.3682, allocations: 386.8 kB / 466.7 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.372, allocations: 1.701 MB / 468.4 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.3721, allocations: 184.6 kB / 468.6 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004405/0.3726, allocations: 239.9 kB / 468.8 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005905/0.3785, allocations: 3.133 MB / 471.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-05/0.3786, allocations: 19.88 kB / 471.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002149/0.3788, allocations: 92 kB / 472 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.3789, allocations: 104.6 kB / 472.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005064/0.384, allocations: 2.692 MB / 474.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01825/0.4022, allocations: 9.494 MB / 484.3 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00272/0.4049, allocations: 1.403 MB / 485.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.4069, allocations: 1.038 MB / 486.8 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.4072, allocations: 57.88 kB / 486.8 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.4072, allocations: 43.56 kB / 486.9 MB, free: 14.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 4.038e-06/0.4073, allocations: 4 kB / 486.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=131): time 0.01465/0.4219, allocations: 6.354 MB / 493.2 MB, free: 7.926 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.422, allocations: 68.72 kB / 493.3 MB, free: 7.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/0.4247, allocations: 1.763 MB / 495 MB, free: 6.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.4248, allocations: 45.7 kB / 495.1 MB, free: 6.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009749/0.4258, allocations: 1.186 MB / 496.3 MB, free: 4.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004874/0.4263, allocations: 476 kB / 496.7 MB, free: 4.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.4268, allocations: 283.5 kB / 497 MB, free: 4.078 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.4269, allocations: 305.1 kB / 497.3 MB, free: 3.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.4283, allocations: 0.7964 MB / 498.1 MB, free: 2.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.4299, allocations: 1.209 MB / 499.3 MB, free: 1.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003099/0.433, allocations: 2.098 MB / 0.4897 GB, free: 15.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-06/0.4331, allocations: 4 kB / 0.4897 GB, free: 15.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004804/0.4379, allocations: 2.592 MB / 0.4922 GB, free: 12.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.4379, allocations: 14.5 kB / 0.4922 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.4379, allocations: 12 kB / 0.4922 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.4389, allocations: 415.4 kB / 0.4926 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4403, allocations: 363.4 kB / 0.493 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007817/0.4481, allocations: 6.77 MB / 0.4996 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.4499, allocations: 111.8 kB / 0.4997 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.4501, allocations: 60 kB / 0.4997 GB, free: 4.641 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.001617/0.4517, allocations: 0.8017 MB / 0.5005 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004568/0.4521, allocations: 198.7 kB / 0.5007 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/0.4565, allocations: 2.296 MB / 0.503 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.4565, allocations: 19.98 kB / 0.503 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.4565, allocations: 4 kB / 0.503 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.4565, allocations: 3.984 kB / 0.503 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009953/0.4665, allocations: 4.993 MB / 0.5079 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.4665, allocations: 4 kB / 0.5079 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4676, allocations: 240 kB / 0.5081 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.4688, allocations: 450.6 kB / 0.5085 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.4689, allocations: 31.98 kB / 0.5086 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009008/0.4779, allocations: 8.231 MB / 0.5166 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/0.4779, allocations: 7.938 kB / 0.5166 GB, free: 2.758 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006236/0.4842, allocations: 3.443 MB / 0.52 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/0.4856, allocations: 362.7 kB / 0.5203 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000402/0.486, allocations: 35.98 kB / 0.5203 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.487, allocations: 83.91 kB / 0.5204 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003288/0.4873, allocations: 124.7 kB / 0.5205 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/0.4874, allocations: 35.98 kB / 0.5206 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002214/0.4896, allocations: 1.214 MB / 0.5218 GB, free: 13.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4896, allocations: 0 / 0.5218 GB, free: 13.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003036/0.4927, allocations: 0.5078 MB / 0.5223 GB, free: 12.9 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.007135/0.4998, allocations: 4.079 MB / 0.5262 GB, free: 8.746 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00443/0.5042, allocations: 2.322 MB / 0.5285 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.924e-06/0.5042, allocations: 0 / 0.5285 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002911/0.5071, allocations: 1.552 MB / 0.53 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.5096, allocations: 480.7 kB / 0.5305 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2408/0.7504, allocations: 19.42 MB / 0.5494 GB, free: 95.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.7517, allocations: 2.004 MB / 0.5514 GB, free: 94.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.7529, allocations: 443.3 kB / 0.5518 GB, free: 94.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009771/0.7538, allocations: 0.9313 MB / 0.5527 GB, free: 93.22 MB / 446.1 MB Notification: Performance of SimCode: time 9.81e-07/0.7538, allocations: 0 / 0.5527 GB, free: 93.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09398/0.8478, allocations: 49.65 MB / 0.6012 GB, free: 44.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.41/28.25, allocations: 14.77 kB / 0.6012 GB, free: 44.02 MB / 446.1 MB " [Timeout remaining time 632] (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: 30.992889641998772]