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.001342/0.001342, allocations: 116.4 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.001564/0.001564, allocations: 214.9 kB / 23.75 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.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.001912/0.001912, allocations: 59.91 kB / 377.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2725, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01417/0.2866, allocations: 10.33 MB / 441.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00791/0.2945, allocations: 3.329 MB / 444.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002502/0.297, allocations: 75.5 kB / 444.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.2997, allocations: 0.7415 MB / 445.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003917/0.3036, allocations: 0.8855 MB / 446.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.305, allocations: 447.2 kB / 447 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00486/0.3099, allocations: 2.996 MB / 450 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002448/0.3123, allocations: 1.38 MB / 451.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.3151, allocations: 1.39 MB / 452.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003134/0.3183, allocations: 1.751 MB / 454.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006553/0.3189, allocations: 352 kB / 454.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.3201, allocations: 463.8 kB / 455.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.3213, allocations: 1.04 MB / 456.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002722/0.324, allocations: 1.614 MB / 458 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007109/0.3312, allocations: 4.714 MB / 462.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3312, allocations: 0 / 462.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3312, allocations: 0 / 462.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.3313, allocations: 0 / 462.7 MB, free: 7.031 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.008013/0.3393, allocations: 3.284 MB / 466 MB, free: 3.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.3394, allocations: 12.02 kB / 466 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006532/0.34, allocations: 337.6 kB / 466.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.3414, allocations: 374.9 kB / 466.7 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004195/0.3456, allocations: 1.713 MB / 468.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.3457, allocations: 180.6 kB / 468.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005484/0.3463, allocations: 224 kB / 468.8 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007692/0.354, allocations: 3.148 MB / 471.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/0.3541, allocations: 3.953 kB / 471.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005081/0.3546, allocations: 92 kB / 472 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.3548, allocations: 108.6 kB / 472.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006471/0.3612, allocations: 2.7 MB / 474.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02221/0.3835, allocations: 9.498 MB / 484.3 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.3865, allocations: 1.395 MB / 485.7 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/0.3889, allocations: 1.043 MB / 486.8 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000307/0.3892, allocations: 60.94 kB / 486.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.199e-05/0.3893, allocations: 47.56 kB / 486.9 MB, free: 14.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 4.729e-06/0.3893, allocations: 0 / 486.9 MB, free: 14.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=131): time 0.01666/0.406, allocations: 6.35 MB / 493.2 MB, free: 7.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.406, allocations: 64.72 kB / 493.3 MB, free: 7.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/0.4095, allocations: 1.763 MB / 495 MB, free: 6.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001948/0.4097, allocations: 45.7 kB / 495.1 MB, free: 6.059 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.4108, allocations: 1.19 MB / 496.3 MB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005914/0.4114, allocations: 476 kB / 496.7 MB, free: 4.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006837/0.4121, allocations: 287.5 kB / 497 MB, free: 4.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.4122, allocations: 305.1 kB / 497.3 MB, free: 3.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.4138, allocations: 0.8002 MB / 498.1 MB, free: 2.996 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.4156, allocations: 1.201 MB / 499.3 MB, free: 1.625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/0.4189, allocations: 2.09 MB / 0.4897 GB, free: 15.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4189, allocations: 4 kB / 0.4897 GB, free: 15.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005208/0.4241, allocations: 2.6 MB / 0.4922 GB, free: 12.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.4242, allocations: 12 kB / 0.4922 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.4242, allocations: 12 kB / 0.4922 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.4253, allocations: 423 kB / 0.4926 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4269, allocations: 363.4 kB / 0.493 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009031/0.4359, allocations: 6.763 MB / 0.4996 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.4376, allocations: 119.8 kB / 0.4997 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000293/0.4379, allocations: 60 kB / 0.4998 GB, free: 4.66 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.001792/0.4397, allocations: 0.7939 MB / 0.5005 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006444/0.4403, allocations: 194.8 kB / 0.5007 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0046/0.4449, allocations: 2.292 MB / 0.503 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.4449, allocations: 15.94 kB / 0.503 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.4449, allocations: 4 kB / 0.503 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.445, allocations: 11.97 kB / 0.503 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.4567, allocations: 4.994 MB / 0.5079 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.4567, allocations: 8.094 kB / 0.5079 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4578, allocations: 235.6 kB / 0.5081 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.4591, allocations: 451.2 kB / 0.5085 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/0.4592, allocations: 39.98 kB / 0.5086 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009679/0.4689, allocations: 8.229 MB / 0.5166 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.076e-06/0.4689, allocations: 4 kB / 0.5166 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007092/0.476, allocations: 3.443 MB / 0.52 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.4774, allocations: 370.7 kB / 0.5203 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005243/0.478, allocations: 28 kB / 0.5203 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.4793, allocations: 87.89 kB / 0.5204 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/0.4797, allocations: 124.7 kB / 0.5205 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.4798, allocations: 36 kB / 0.5206 GB, free: 14.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002637/0.4824, allocations: 1.21 MB / 0.5218 GB, free: 13.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4824, allocations: 3.938 kB / 0.5218 GB, free: 13.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00224/0.4846, allocations: 0.4999 MB / 0.5223 GB, free: 12.93 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.006707/0.4914, allocations: 4.095 MB / 0.5263 GB, free: 8.762 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004586/0.4959, allocations: 2.311 MB / 0.5285 GB, free: 6.406 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/0.4959, allocations: 4 kB / 0.5285 GB, free: 6.402 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/0.499, allocations: 1.551 MB / 0.53 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.5017, allocations: 488.3 kB / 0.5305 GB, free: 4.336 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2231/0.7248, allocations: 19.41 MB / 0.5494 GB, free: 95.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.726, allocations: 2.003 MB / 0.5514 GB, free: 94.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001076/0.7271, allocations: 445.6 kB / 0.5518 GB, free: 94.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008908/0.728, allocations: 0.9295 MB / 0.5527 GB, free: 93.34 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.728, allocations: 0 / 0.5527 GB, free: 93.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08749/0.8155, allocations: 49.65 MB / 0.6012 GB, free: 44.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.57/28.39, allocations: 7.938 kB / 0.6012 GB, free: 44.12 MB / 446.1 MB " [Timeout remaining time 631] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.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_trunk_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: 31.156661812216043]