Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001908/0.001908, allocations: 123.4 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.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.002251/0.002251, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.539/1.539, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.SMR_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 55.91 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 53.34 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.2194/0.3254, allocations: 10.27 MB / 436.6 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006219/0.3317, allocations: 3.323 MB / 439.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.3337, allocations: 73.69 kB / 440 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.3359, allocations: 0.7473 MB / 440.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.3391, allocations: 0.87 MB / 441.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.3404, allocations: 426.4 kB / 442 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004256/0.3447, allocations: 2.991 MB / 445 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002549/0.3472, allocations: 1.789 MB / 446.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.3499, allocations: 1.387 MB / 448.2 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003703/0.3536, allocations: 1.739 MB / 449.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008838/0.3545, allocations: 353.8 kB / 450.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.3561, allocations: 473.9 kB / 450.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.3576, allocations: 1.025 MB / 451.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003259/0.3608, allocations: 1.618 MB / 453.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007502/0.3683, allocations: 4.719 MB / 458.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3683, allocations: 0 / 458.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.3683, allocations: 1.406 kB / 458.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.3685, allocations: 1.031 kB / 458.1 MB, free: 11.16 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.009794/0.3783, allocations: 3.352 MB / 461.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.3783, allocations: 8.344 kB / 461.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006833/0.379, allocations: 344.3 kB / 461.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/0.3805, allocations: 374.6 kB / 462.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00424/0.3847, allocations: 1.792 MB / 464 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002368/0.385, allocations: 179.5 kB / 464.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007124/0.3857, allocations: 232 kB / 464.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008306/0.394, allocations: 3.134 MB / 467.5 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.3941, allocations: 6.203 kB / 467.5 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005383/0.3946, allocations: 100.3 kB / 467.6 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.3948, allocations: 104.9 kB / 467.7 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006394/0.4012, allocations: 2.699 MB / 470.4 MB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02125/0.4224, allocations: 9.65 MB / 480.1 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003253/0.4257, allocations: 2.08 MB / 482.1 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002106/0.4278, allocations: 1.05 MB / 483.2 MB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000363/0.4282, allocations: 199.2 kB / 483.4 MB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/0.4282, allocations: 47.55 kB / 483.4 MB, free: 7.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.068e-06/0.4282, allocations: 0 / 483.4 MB, free: 7.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01632/0.4445, allocations: 6.886 MB / 490.3 MB, free: 88 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.4446, allocations: 64.72 kB / 490.4 MB, free: 12 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/0.4483, allocations: 1.763 MB / 492.1 MB, free: 14.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.4485, allocations: 45.7 kB / 492.2 MB, free: 14.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.4496, allocations: 1.186 MB / 493.4 MB, free: 13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005263/0.4501, allocations: 476 kB / 493.8 MB, free: 12.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005856/0.4507, allocations: 287.5 kB / 494.1 MB, free: 12.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4508, allocations: 309.1 kB / 494.4 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.4523, allocations: 0.7925 MB / 495.2 MB, free: 11.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.4541, allocations: 1.209 MB / 496.4 MB, free: 9.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/0.4575, allocations: 2.094 MB / 498.5 MB, free: 7.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.4575, allocations: 4 kB / 498.5 MB, free: 7.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005365/0.4628, allocations: 2.671 MB / 0.4894 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.4629, allocations: 11.94 kB / 0.4894 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/0.4629, allocations: 16 kB / 0.4895 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.464, allocations: 424.1 kB / 0.4899 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.4654, allocations: 359.4 kB / 0.4902 GB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007926/0.4734, allocations: 7.071 MB / 0.4971 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.4752, allocations: 107.8 kB / 0.4972 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.4755, allocations: 63.98 kB / 0.4973 GB, free: 12.34 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.001907/0.4774, allocations: 0.794 MB / 0.4981 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006592/0.4781, allocations: 194.8 kB / 0.4982 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004922/0.483, allocations: 2.368 MB / 0.5006 GB, free: 8.934 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.483, allocations: 19.94 kB / 0.5006 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.483, allocations: 4 kB / 0.5006 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.483, allocations: 7.969 kB / 0.5006 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/0.4944, allocations: 5.095 MB / 0.5056 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.4944, allocations: 8.031 kB / 0.5056 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.4956, allocations: 239.6 kB / 0.5058 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.4969, allocations: 459 kB / 0.5062 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.4971, allocations: 31.98 kB / 0.5063 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009646/0.5067, allocations: 8.644 MB / 0.5147 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.5067, allocations: 4 kB / 0.5147 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006703/0.5134, allocations: 3.518 MB / 0.5181 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.5147, allocations: 439.8 kB / 0.5186 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006793/0.5154, allocations: 32 kB / 0.5186 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.5169, allocations: 79.91 kB / 0.5187 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/0.5172, allocations: 124.7 kB / 0.5188 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.5173, allocations: 40 kB / 0.5188 GB, free: 5.402 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002723/0.5201, allocations: 1.21 MB / 0.52 GB, free: 4.199 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5201, allocations: 0 / 0.52 GB, free: 4.199 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002604/0.5227, allocations: 0.5038 MB / 0.5205 GB, free: 3.695 MB / 430.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.007163/0.5298, allocations: 4.172 MB / 0.5246 GB, free: 15.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004684/0.5345, allocations: 2.387 MB / 0.5269 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.5345, allocations: 0 / 0.5269 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002959/0.5375, allocations: 1.567 MB / 0.5284 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/0.5409, allocations: 482.4 kB / 0.5289 GB, free: 10.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03962/0.5805, allocations: 19.53 MB / 0.548 GB, free: 6.664 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002866/0.5834, allocations: 2.005 MB / 0.5499 GB, free: 4.621 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001729/0.5851, allocations: 443.5 kB / 0.5503 GB, free: 4.184 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/0.5868, allocations: 0.9288 MB / 0.5513 GB, free: 3.254 MB / 462.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5868, allocations: 4 kB / 0.5513 GB, free: 3.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1183/0.7051, allocations: 48.41 MB / 0.5985 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.77/26.48, allocations: 7.875 kB / 0.5985 GB, free: 3.285 MB / 0.4981 GB " [Timeout remaining time 633] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.386134692002088]