Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001305/0.001305, allocations: 81.97 kB / 20.68 MB, free: 1.023 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.001394/0.001394, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.388/1.388, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.638e-05/2.807e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01172/0.01175, allocations: 9.023 MB / 328 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007274/0.01903, allocations: 3.057 MB / 331 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.02061, allocations: 74.53 kB / 331.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.02265, allocations: 0.6947 MB / 331.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.02579, allocations: 0.9114 MB / 332.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.0269, allocations: 421.8 kB / 333.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004234/0.03113, allocations: 3.074 MB / 336.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002249/0.03338, allocations: 1.333 MB / 337.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003406/0.03678, allocations: 2 MB / 339.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002855/0.03964, allocations: 1.49 MB / 341 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005982/0.04024, allocations: 355.5 kB / 341.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.04139, allocations: 459.7 kB / 341.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.0426, allocations: 1.063 MB / 342.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002065/0.04466, allocations: 1.095 MB / 344 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00714/0.0518, allocations: 4.744 MB / 348.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.05181, allocations: 4 kB / 348.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.05181, allocations: 0 / 348.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001497/0.05196, allocations: 0 / 348.7 MB, free: 13.79 MB / 318.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.007768/0.05973, allocations: 3.233 MB / 351.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.05978, allocations: 8.922 kB / 351.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000876/0.06065, allocations: 346.9 kB / 352.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003207/0.06386, allocations: 1.692 MB / 354 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.06401, allocations: 173 kB / 354.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/0.06437, allocations: 232.4 kB / 354.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005598/0.06996, allocations: 3.237 MB / 357.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.752e-05/0.07002, allocations: 7.953 kB / 357.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/0.07026, allocations: 100 kB / 357.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.07039, allocations: 108.6 kB / 357.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004924/0.07531, allocations: 2.688 MB / 360.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01477/0.09008, allocations: 8.397 MB / 368.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.09266, allocations: 1.404 MB / 370.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.09464, allocations: 1.042 MB / 371.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002248/0.09487, allocations: 52.89 kB / 371.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.09492, allocations: 51.5 kB / 371.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 5.16e-06/0.09492, allocations: 3.984 kB / 371.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01501/0.1099, allocations: 6.335 MB / 377.8 MB, free: 164 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.11, allocations: 68.72 kB / 377.9 MB, free: 84 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.1124, allocations: 1.603 MB / 379.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.1125, allocations: 45.7 kB / 379.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009772/0.1135, allocations: 1.185 MB / 380.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004185/0.1139, allocations: 471.9 kB / 381.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000476/0.1144, allocations: 283.5 kB / 381.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1145, allocations: 305.1 kB / 381.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.1159, allocations: 0.8002 MB / 382.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.1177, allocations: 1.205 MB / 383.7 MB, free: 10 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003359/0.121, allocations: 2.098 MB / 385.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.1211, allocations: 8 kB / 385.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005079/0.1261, allocations: 2.585 MB / 388.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.1262, allocations: 15.06 kB / 388.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/0.1262, allocations: 15.94 kB / 388.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.1274, allocations: 423 kB / 388.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.1288, allocations: 367.5 kB / 389.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007951/0.1368, allocations: 6.622 MB / 395.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.1382, allocations: 111.9 kB / 396 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.1384, allocations: 71.92 kB / 396 MB, free: 13.2 MB / 366.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.001494/0.1399, allocations: 0.7968 MB / 396.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/0.1404, allocations: 190.8 kB / 397 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/0.145, allocations: 2.272 MB / 399.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.145, allocations: 12 kB / 399.3 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.145, allocations: 8 kB / 399.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.145, allocations: 7.969 kB / 399.3 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00918/0.1542, allocations: 4.427 MB / 403.7 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.1542, allocations: 4 kB / 403.7 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.1553, allocations: 235.6 kB / 404 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.1566, allocations: 443.2 kB / 404.4 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.1568, allocations: 35.98 kB / 404.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009329/0.1661, allocations: 8.091 MB / 412.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.1661, allocations: 7.984 kB / 412.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006385/0.1725, allocations: 3.419 MB / 416 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.1735, allocations: 354.7 kB / 416.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004161/0.1739, allocations: 32 kB / 416.3 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.1751, allocations: 91.89 kB / 416.4 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.1754, allocations: 120.7 kB / 416.5 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.1755, allocations: 39.98 kB / 416.6 MB, free: 8.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001987/0.1775, allocations: 1.085 MB / 417.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1775, allocations: 0 / 417.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001912/0.1794, allocations: 0.5038 MB / 418.2 MB, free: 6.434 MB / 382.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.0004719/0.1799, allocations: 194.9 kB / 418.4 MB, free: 6.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004487/0.1844, allocations: 2.327 MB / 420.7 MB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.1844, allocations: 0 / 420.7 MB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/0.1873, allocations: 1.551 MB / 422.2 MB, free: 2.262 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.1896, allocations: 407.9 kB / 422.6 MB, free: 1.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00905/0.1986, allocations: 4.915 MB / 427.5 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.2007, allocations: 1.43 MB / 429 MB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.202, allocations: 434.1 kB / 429.4 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004533/0.2024, allocations: 120.5 kB / 429.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2024, allocations: 0 / 429.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of Templates: time 0.0504/0.2528, allocations: 26.72 MB / 456.2 MB, free: 464 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.187449783086777]